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

@ -240,11 +240,11 @@ void test_connecting(TestConnections& test,
if (!could_connect && should_be_able_to)
{
test.assert(false, "%s@%s should have been able to connect, but wasn't.", zUser, zHost);
test.expect(false, "%s@%s should have been able to connect, but wasn't.", zUser, zHost);
}
else if (could_connect && !should_be_able_to)
{
test.assert(false, "%s@%s should NOT have been able to connect, but was.", zUser, zHost);
test.expect(false, "%s@%s should NOT have been able to connect, but was.", zUser, zHost);
}
else
{
@ -348,7 +348,7 @@ int main(int argc, char** argv)
}
else
{
test.assert(false, "MaxScale node does not have at least one IP-address.");
test.expect(false, "MaxScale node does not have at least one IP-address.");
}
return test.global_result;