Commit 297d968a authored by unknown's avatar unknown
Browse files

Run mysql_client_test without --silent

Flush both stdout and stderr before abort'ing mysql_client_test


mysql-test/mysql-test-run.pl:
  Run mysql_client_test wihtout --silent flag
tests/mysql_client_test.c:
  Before aborting mysql_client_test in die, make sure
  to first flush stdout and finally after the error message 
  has been printed also fflush stderr
parent e3936b10
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1735,7 +1735,7 @@ sub environment_setup () {
  # Setup env so childs can execute mysql_client_test
  # ----------------------------------------------------
  my $cmdline_mysql_client_test=
    "$exe_mysql_client_test --no-defaults --testcase --user=root --silent " .
    "$exe_mysql_client_test --no-defaults --testcase --user=root " .
    "--port=$master->[0]->{'port'} " .
    "--socket=$master->[0]->{'path_sock'}";
  if ( $mysql_version_id >= 50000 )
+2 −0
Original line number Diff line number Diff line
@@ -113,7 +113,9 @@ static void client_disconnect();

void die(const char *file, int line, const char *expr)
{
  fflush(stdout);
  fprintf(stderr, "%s:%d: check failed: '%s'\n", file, line, expr);
  fflush(stderr);
  abort();
}