diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2011-03-15 16:06:59 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2011-03-15 16:06:59 +0100 |
commit | ebba068d26115f6d65ca12163bb771b56003edd5 (patch) | |
tree | 6f427ec75ede381c1c2a586afd6c45b07826c24d /mysql-test/include/not_crashrep.inc | |
parent | 782b44bc7f663aff607a1520a981d7e1aedbc188 (diff) | |
download | mariadb-git-ebba068d26115f6d65ca12163bb771b56003edd5.tar.gz |
Bug #11762804 55442: MYSQLD DEBUG CRASHES WHILE RUNNING MYISAM_CRASH_BEFORE_FLUSH_KEYS.TEST
This will cause affected tests to skip if CrashReporter would popup
Found 5 tests that needed modification
Diffstat (limited to 'mysql-test/include/not_crashrep.inc')
-rw-r--r-- | mysql-test/include/not_crashrep.inc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/include/not_crashrep.inc b/mysql-test/include/not_crashrep.inc new file mode 100644 index 00000000000..e126f339a5f --- /dev/null +++ b/mysql-test/include/not_crashrep.inc @@ -0,0 +1,24 @@ +# Check if CrashReporter is enabled and would open a window + +perl; +sub skip_test { + # Only relevant on Mac OS X + return 0 unless $^O eq 'darwin'; + my $crep= `defaults read com.apple.CrashReporter DialogType`; + return 0 if $?; + chomp ($crep); + $crep= lc $crep; + return ($crep eq 'basic' || $crep eq 'developer'); +} +my $skip= skip_test(); +open (F, ">" . $ENV{'MYSQL_TMP_DIR'} . "/crashrep.inc"); +print F "let \$crashrep= $skip;\n"; +close F; +EOF + +--source $MYSQL_TMP_DIR/crashrep.inc +--remove_file $MYSQL_TMP_DIR/crashrep.inc + +if ($crashrep) { + --skip CrashReporter would popup a window +} |