diff options
author | unknown <msvensson@neptunus.(none)> | 2006-08-07 11:32:20 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-08-07 11:32:20 +0200 |
commit | 97a9077f4a56d1a024af18bc735b29cd27f12dda (patch) | |
tree | b2ca0fe99b309ae1352455c1eb6ae455eace5d9d /tests | |
parent | dbdd31815392c4131d6d5b86171dbe6989f2f104 (diff) | |
parent | e4f91a7369646077872817ba5afc16370a9647ba (diff) | |
download | mariadb-git-97a9077f4a56d1a024af18bc735b29cd27f12dda.tar.gz |
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index b65528eccb6..89b07143873 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -122,7 +122,7 @@ static void client_disconnect(); void die(const char *file, int line, const char *expr) { fprintf(stderr, "%s:%d: check failed: '%s'\n", file, line, expr); - fflush(stderr); + fflush(NULL); abort(); } @@ -14930,7 +14930,9 @@ static void test_bug17667() myquery(rc); } - sleep(1); /* The server may need time to flush the data to the log. */ + /* Make sure the server has written the logs to disk before reading it */ + rc= mysql_query(mysql, "flush logs"); + myquery(rc); master_log_filename = (char *) malloc(strlen(opt_vardir) + strlen("/log/master.log") + 1); strcpy(master_log_filename, opt_vardir); |