diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-06-08 19:18:31 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2009-06-08 19:18:31 -0300 |
commit | 8ad45961508f87db521917a37b4745680b967752 (patch) | |
tree | 4a8d2a7222f2b6601f181ec619440ad16eb5718c /mysql-test/t/multi_update2.test | |
parent | 01912b20bc5e1d9bc3ec80289b0de71f9797eaa9 (diff) | |
download | mariadb-git-8ad45961508f87db521917a37b4745680b967752.tar.gz |
Test is very resource intensive under debug and valgrind runs.
Under a debug run, the trace file grows to a few gigabytes.
Under valgrind, takes more then 20 minutes due to the high
number of insert statements.
mysql-test/t/multi_update2.test:
Skip under --valgrind and --debug.
Diffstat (limited to 'mysql-test/t/multi_update2.test')
-rw-r--r-- | mysql-test/t/multi_update2.test | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/mysql-test/t/multi_update2.test b/mysql-test/t/multi_update2.test index 9341d40282b..a04518f4964 100644 --- a/mysql-test/t/multi_update2.test +++ b/mysql-test/t/multi_update2.test @@ -5,14 +5,33 @@ # # If we are running with # - Valgrind -> $VALGRIND_TEST <> 0 -# - debug tracing -> @@debug LIKE '%trace%' -# the resource consumtion (storage space needed, runtime) will be extreme. -# Therefore we require that option "big" is set. +# - debug tracing -> @@session.debug LIKE '%trace%' +# the resource consumption (storage space needed, runtime) will be extreme. +# Therefore we require that the option "--big-test" is also set. # -if (`SELECT ($VALGRIND_TEST <> 0 OR @@debug LIKE '%trace%') AND '$BIG_TEST' = ''`) +let $need_big= 0; +--disable_query_log +--error 0,ER_UNKNOWN_SYSTEM_VARIABLE +SET @aux = @@session.debug; +if (!$mysql_errno) +{ + # We have returncode 0 = the server system variable @@session.debug exists. + # But we only need "--big-test" in case of tracing. + if (`SELECT @@session.debug LIKE '%trace%'`) + { + let $need_big= 1; + } +} +--enable_query_log +if ($VALGRIND_TEST) +{ + # We are running with Valgrind + inc $need_big; +} +if (`SELECT '$BIG_TEST' = '' AND $need_big = 1`) { - --skip Need "big" when running with Valgrind or debug + --skip Need "--big-test" when running with the option "--debug" or "--valgrind" } # |