Bug #35009 Results of mysql_client_test are discarded upon failure
Submitted: 3 Mar 2008 18:19 Modified: 26 Mar 2008 16:26
Reporter: Davi Arnaut (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.0 OS:Any
Assigned to: Davi Arnaut CPU Architecture:Any
Tags: mysqltest

[3 Mar 2008 18:19] Davi Arnaut
Description:
If the test case mysql_client_test fails, the results of the test case before the failure are overwritten by a message that the exec of the command failed, making impossible to know which particular test case failed.

How to repeat:
Insert a failure in mysql_client_test.c and run the test case. 

davi@endora:~/mysql-5.0-runtime/mysql-test$ cat var/log/mysql_client_test.log
exec of '/home/davi/mysql-5.0-runtime/tests/mysql_client_test --no-defaults --testcase --user=root --port=12000 --socket=/home/davi/mysql-5.0-runtime/mysql-test/var/tmp/master.sock --vardir=/home/davi/mysql-5.0-runtime/mysql-test/var --getopt-ll-test

Previous entries are lost.

Suggested fix:
Messages to the log file should be appended to the file.
[3 Mar 2008 18:40] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/43330

ChangeSet@1.2593, 2008-03-03 15:34:12-03:00, davi@mysql.com +1 -0
  Bug#35009 Results of mysql_client_test are discarded upon failure
  
  It's impossible to determine which test inside mysql_client_test
  failed if the log file is overwritten. Always append
  when dumping results to the log file.
[4 Mar 2008 13:07] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/43378

ChangeSet@1.2593, 2008-03-04 10:04:55-03:00, davi@mysql.com +1 -0
  Bug#35009 Results of mysql_client_test are discarded upon failure
  
  It's impossible to determine which test inside mysql_client_test
  failed if the log file is overwritten by mysqltest when dumping
  the test case results. Redirect mysql_client_test output to a
  separate file.
[4 Mar 2008 13:18] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/43379

ChangeSet@1.2593, 2008-03-04 10:17:49-03:00, davi@mysql.com +1 -0
  Bug#35009 Results of mysql_client_test are discarded upon failure
  
  It's impossible to determine which test inside mysql_client_test
  failed if the log file is overwritten by mysqltest when dumping
  the test case results. Redirect mysql_client_test output to a
  separate file.
[4 Mar 2008 13:22] Davi Arnaut
Queued in 5.0-runtime
[26 Mar 2008 14:13] Bugs System
Pushed into 5.0.60
[26 Mar 2008 14:13] Bugs System
Pushed into 5.1.24-rc
[26 Mar 2008 16:26] Paul DuBois
Test framework change. No changelog entry needed.
[27 Mar 2008 17:53] Bugs System
Pushed into 6.0.5-alpha