Minor fixes for testbinlog.c
Minor fixes for testbinlog.c
This commit is contained in:
parent
b18c0ed0b8
commit
e0c85d02fa
@ -719,11 +719,11 @@ int main(int argc, char **argv)
|
||||
const char *mysql_connector_j_expected = "SELECT @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@character_set_connection AS character_set_connection, @@character_set_results AS character_set_results, @@character_set_server AS character_set_server, @@init_connect AS init_connect, @@interactive_timeout AS interactive_timeout, @@license AS license, @@lower_case_table_names AS lower_case_table_names, @@max_allowed_packet AS max_allowed_packet, @@net_buffer_length AS net_buffer_length, @@net_write_timeout AS net_write_timeout, @@query_cache_size AS query_cache_size, @@query_cache_type AS query_cache_type, @@sql_mode AS sql_mode, @@system_time_zone AS system_time_zone, @@time_zone AS time_zone, @@tx_isolation AS tx_isolation, @@wait_timeout AS wait_timeout";
|
||||
if (strcmp(mysql_connector_j_actual, mysql_connector_j_expected) == 0)
|
||||
{
|
||||
printf("Test %d PASSED", tests);
|
||||
printf("Test %d PASSED\n", tests);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Test %d FAILED: Actual result: %s", tests, mysql_connector_j_actual);
|
||||
printf("Test %d FAILED: Actual result: %s\n", tests, mysql_connector_j_actual);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -733,11 +733,11 @@ int main(int argc, char **argv)
|
||||
const char *no_comment_query_expected = "SELECT foo FROM bar LIMIT 1";
|
||||
if (strcmp(no_comment_query_actual, no_comment_query_expected) == 0)
|
||||
{
|
||||
printf("Test %d PASSED", tests);
|
||||
printf("Test %d PASSED\n", tests);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Test %d FAILED: Actual result: %s", tests, no_comment_query_actual);
|
||||
printf("Test %d FAILED: Actual result: %s\n", tests, no_comment_query_actual);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -747,11 +747,11 @@ int main(int argc, char **argv)
|
||||
const char *unclosed_comment_query_expected = "";
|
||||
if (strcmp(unclosed_comment_query_actual, unclosed_comment_query_expected) == 0)
|
||||
{
|
||||
printf("Test %d PASSED", tests);
|
||||
printf("Test %d PASSED\n", tests);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Test %d FAILED: Actual result: %s", tests, no_comment_query_actual);
|
||||
printf("Test %d FAILED: Actual result: %s\n", tests, no_comment_query_actual);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user