From e45bcbfd2bc2d0eec4280c1a73b3a9095d2848a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 21 Mar 2023 16:55:00 +0000 Subject: [PATCH] Adding more verbosity in a TAP test --- test/tap/tests/admin_show_table_status-t.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tap/tests/admin_show_table_status-t.cpp b/test/tap/tests/admin_show_table_status-t.cpp index ca191ac86..42c02b7d0 100644 --- a/test/tap/tests/admin_show_table_status-t.cpp +++ b/test/tap/tests/admin_show_table_status-t.cpp @@ -54,6 +54,7 @@ int main() { while ((row = mysql_fetch_row(proxy_res))) { std::string table(row[0]); tables.push_back(table); + diag("Adding table: %s", row[0]); } mysql_free_result(proxy_res); mysql_close(proxysql_admin); @@ -76,6 +77,7 @@ int main() { char *query = (char *) malloc(strlen(queries[0]) + it->length() + 8); for (std::vector::iterator it2 = queries.begin(); it2 != queries.end(); it2++) { sprintf(query,*it2, it->c_str()); + diag("Running query: %s", query); MYSQL_QUERY(proxysql_admin, query); MYSQL_RES* proxy_res = mysql_store_result(proxysql_admin); unsigned long rows = proxy_res->row_count;