Add more descriptive errors to blob_test functions

The expected and received value are now both logged when an error
occurs. The execution is also cut short to prevent excessive message
flooding as most of the time all comparisons fail.
This commit is contained in:
Markus Mäkelä
2017-12-22 10:40:13 +02:00
parent fb1875c61c
commit 3e65163429

View File

@ -175,9 +175,9 @@ int check_longblob_data(TestConnections* Test, MYSQL * conn, unsigned long chunk
{
if (data[y] != y)
{
Test->add_result(1, "Data is wrong!\n");
Test->add_result(1, "expected %d, got %d", data[y], y);
break;
}
//printf("y = %d \t%lu\tid=%d\tx=%d\n", y, data[y], r_id, r_x);
}
row++;
}