Rename TestConnections::assert() to TestConnections::expect()
Allows the including of <assert.h>.
This commit is contained in:
@ -46,16 +46,16 @@ int main(int argc, char* argv[])
|
||||
|
||||
test.set_timeout(30);
|
||||
|
||||
test.assert(mysql_stmt_prepare(stmt, query.c_str(), query.size()) == 0,
|
||||
test.expect(mysql_stmt_prepare(stmt, query.c_str(), query.size()) == 0,
|
||||
"Prepared statement failure: %s", mysql_stmt_error(stmt));
|
||||
test.assert(mysql_stmt_bind_param(stmt, &bind.bind) == 0,
|
||||
test.expect(mysql_stmt_bind_param(stmt, &bind.bind) == 0,
|
||||
"Bind failure: %s", mysql_stmt_error(stmt));
|
||||
test.assert(mysql_stmt_execute(stmt) == 0,
|
||||
test.expect(mysql_stmt_execute(stmt) == 0,
|
||||
"Execute failure: %s", mysql_stmt_error(stmt));
|
||||
|
||||
mysql_stmt_close(stmt);
|
||||
|
||||
test.assert(mysql_query(test.maxscales->conn_rwsplit[0], "SELECT 1") == 0, "Normal queries should work");
|
||||
test.expect(mysql_query(test.maxscales->conn_rwsplit[0], "SELECT 1") == 0, "Normal queries should work");
|
||||
test.maxscales->disconnect();
|
||||
|
||||
return test.global_result;
|
||||
|
Reference in New Issue
Block a user