Rename TestConnections::assert() to TestConnections::expect()

Allows the including of <assert.h>.
This commit is contained in:
Johan Wikman
2018-09-10 10:24:46 +03:00
parent bcacdf9358
commit 6279ab350c
38 changed files with 117 additions and 117 deletions

View File

@ -401,7 +401,7 @@ void TestConnections::add_result(bool result, const char *format, ...)
}
}
void TestConnections::assert(bool result, const char *format, ...)
void TestConnections::expect(bool result, const char *format, ...)
{
if (!result)
{
@ -811,7 +811,7 @@ int TestConnections::copy_maxscale_logs(double timestamp)
const char* command = "ls /tmp/core* && exit 42";
int rc = maxscales->ssh_node_f(i, true, command);
assert(rc != 42, "Test should not generate core files");
expect(rc != 42, "Test should not generate core files");
}
return 0;
}