From 226fe4871d4a3b2aacfac4a97d6cb36b97e13c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 9 Nov 2018 08:20:36 +0200 Subject: [PATCH] Log mysql error message in mxs1776_ps_exec_hang If the test fails, log the error message. This should help understand why the test failed. --- maxscale-system-test/mxs1776_ps_exec_hang.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maxscale-system-test/mxs1776_ps_exec_hang.cpp b/maxscale-system-test/mxs1776_ps_exec_hang.cpp index 09c41799c..e8d0c0d9e 100644 --- a/maxscale-system-test/mxs1776_ps_exec_hang.cpp +++ b/maxscale-system-test/mxs1776_ps_exec_hang.cpp @@ -50,8 +50,9 @@ void run_test(TestConnections& test, TestCase test_case) cout << test_case.name << endl; test.expect(test_case.func(test.maxscales->conn_rwsplit[0], stmt, bind), - "Test '%s' failed", - test_case.name.c_str()); + "Test '%s' failed: %s %s", test_case.name.c_str(), + mysql_error(test.maxscales->conn_rwsplit[0]), + mysql_stmt_error(stmt)); mysql_stmt_close(stmt);