summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.sh
diff options
context:
space:
mode:
authorunknown <guilhem@gbichot2>2004-01-11 18:15:19 +0100
committerunknown <guilhem@gbichot2>2004-01-11 18:15:19 +0100
commit24f8054460a574660730024690786b877afccfd3 (patch)
tree297fcbda015023bb665000f376be1b066c3fb471 /mysql-test/mysql-test-run.sh
parentb321b7c00d5f41c47e652e0ae56489730309ee57 (diff)
downloadmariadb-git-24f8054460a574660730024690786b877afccfd3.tar.gz
Detect unexpected return codes of mysqltest in mysql-test-run.
This way, a crash of mysqltest will be visible in the test logs (output of mysql-test-run). mysql-test/mysql-test-run.sh: by design mysqltest returns 0 or 1 or 2 (see the exit()s and the return() of main()). So any greater code is a crash, I guess. On build and on my machine, 139 is segfault and 134 is assertion failure.
Diffstat (limited to 'mysql-test/mysql-test-run.sh')
-rw-r--r--mysql-test/mysql-test-run.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index 265ff036998..3f7efd3d6bc 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -603,7 +603,7 @@ error () {
error_is () {
$ECHO "Errors are (from $TIMEFILE) :"
$CAT < $TIMEFILE
- $ECHO "(the last line(s) may be the ones that caused the die() in mysqltest)"
+ $ECHO "(the last lines may be the most important ones)"
}
prefix_to_8() {
@@ -1309,6 +1309,9 @@ run_testcase ()
skip_inc
$ECHO "$RES$RES_SPACE [ skipped ]"
else
+ if [ $res -gt 2 ]; then
+ $ECHO "mysqltest returned unexpected code $res, it has probably crashed" >> $TIMEFILE
+ fi
total_inc
fail_inc
$ECHO "$RES$RES_SPACE [ fail ]"