From 59bd75be4546e1cba08ae87874699047bb6b88a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Thu, 19 Aug 2021 21:49:08 +0200 Subject: [PATCH] Fixed faulty check in 'test_firewall-t' preventing it from working in DEBUG mode #3554 --- test/tap/tests/test_firewall-t.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tap/tests/test_firewall-t.cpp b/test/tap/tests/test_firewall-t.cpp index 70fbafbee..39ccf4bd6 100644 --- a/test/tap/tests/test_firewall-t.cpp +++ b/test/tap/tests/test_firewall-t.cpp @@ -59,7 +59,8 @@ int main(int argc, char** argv) { // Test that firewall initialized and blocks all queries if (mysql_query(mysql, "select @@version")) { - ok(mysql_num_rows(result) == 0, "Any query should be blocked"); + int myerrno = mysql_errno(mysql); + ok(myerrno == 1148, "Any query should be blocked"); } // enable 'Select 1' query