Skip to content

Commit 5ea9727

Browse files
Bug#29705858 RUN_NDBAPITEST.INC ALWAYS EXIT TEST CASE WHEN THE NDBAPITEST SUCCEED
Exec_print_on_error() is used to run any executable in the system and upon success run_ndbapitest.inc forcefully exits the test cases. This prevents the execution of MTR framework function check_testcase(), which is run at the end of every test case to check that the state of the database is same before and after running the test. Fix by removing the exit() function when exec_print_on_error() is success. Change-Id: I99e2f57827447da0e4836f1bc197e97f41d1e456
1 parent 6446cd1 commit 5ea9727

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

mysql-test/suite/ndb/include/run_ndbapitest.inc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,9 @@ if ($ENV{'MYSQL_TMP_DIR'})
3333
my $cmd = $test_bin;
3434
$cmd .= " $args" if $args;
3535
my $res = exec_print_on_error($cmd, $max_lines);
36-
if ($res)
36+
if (!$res)
3737
{
38-
# Test program suceeded
39-
print $F "exit;\n";
40-
exit(0);
41-
}
42-
else
43-
{
44-
print $F "die Test program failed!;\n";
38+
# Test program failed
4539
}
4640
$F->close();
4741

0 commit comments

Comments
 (0)