mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
20e706689d
mysql-test/suite/innodb/t/group_commit_crash.test: remove autoincrement to avoid rbr being used for insert ... select mysql-test/suite/innodb/t/group_commit_crash_no_optimize_thread.test: remove autoincrement to avoid rbr being used for insert ... select mysys/my_addr_resolve.c: a pointer to a buffer is returned to the caller -> the buffer cannot be on the stack mysys/stacktrace.c: my_vsnprintf() is ok here, in 5.5
30 lines
746 B
PHP
30 lines
746 B
PHP
# 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
|
|
}
|
|
|
|
# the test will crash mysqld. flush tables now to make sure that
|
|
# system tables aren't corrupted by the crash
|
|
--disable_query_log ONCE
|
|
FLUSH TABLES;
|
|
|