File tree 1 file changed +24
-5
lines changed
1 file changed +24
-5
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# If we are running with
7
7
# - Valgrind -> $VALGRIND_TEST <> 0
8
- # - debug tracing -> @@debug LIKE '%trace%'
9
- # the resource consumtion (storage space needed, runtime) will be extreme.
10
- # Therefore we require that option "big" is set.
8
+ # - debug tracing -> @@session. debug LIKE '%trace%'
9
+ # the resource consumption (storage space needed, runtime) will be extreme.
10
+ # Therefore we require that the option "-- big-test " is also set.
11
11
#
12
12
13
- if (`SELECT ($VALGRIND_TEST <> 0 OR @@debug LIKE '%trace%') AND '$BIG_TEST' = ''`)
13
+ let $need_big= 0;
14
+ --disable_query_log
15
+ --error 0,ER_UNKNOWN_SYSTEM_VARIABLE
16
+ SET @aux = @@session.debug;
17
+ if (!$mysql_errno)
18
+ {
19
+ # We have returncode 0 = the server system variable @@session.debug exists.
20
+ # But we only need "--big-test" in case of tracing.
21
+ if (`SELECT @@session.debug LIKE '%trace%'`)
22
+ {
23
+ let $need_big= 1;
24
+ }
25
+ }
26
+ --enable_query_log
27
+ if ($VALGRIND_TEST)
28
+ {
29
+ # We are running with Valgrind
30
+ inc $need_big;
31
+ }
32
+ if (`SELECT '$BIG_TEST' = '' AND $need_big = 1`)
14
33
{
15
- --skip Need "big" when running with Valgrind or debug
34
+ --skip Need "-- big-test " when running with the option "-- debug" or "--valgrind"
16
35
}
17
36
18
37
#
You can’t perform that action at this time.
0 commit comments