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.
This commit is contained in:
Markus Mäkelä 2018-11-09 08:20:36 +02:00
parent 5b3a209643
commit 226fe4871d
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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);