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:
parent
5b3a209643
commit
226fe4871d
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user