Debian Codegraph @

testsuite/systemtap.context/max-kernel-bt.exp

raw
1 set test "max-kernel-bt"
2 set testpath "$srcdir/$subdir"
3
4 if {! [installtest_p]} { untested $test; return }
5
6 # --- TEST 1 ---
7
8 set subtest1 "TEST 1: max backtrace"
9 set test_name "$test: $subtest1"
10
11 set cmd "stap -DMAXBACKTRACE=256 -vvv '$srcdir/$subdir/${test}_1.stp'"
12 set exit_code [run_cmd_2way $cmd out stderr]
13 set out_pat "\\ygcc \[^\\n\]*\"MAXBACKTRACE=256\" .*?hello world\\n 0x\[a-f0-9\]+ "
14 like "${test_name}: stdout" $out $out_pat "-lineanchor"
15 set stderr_pat "^Pass 5: run completed in "
16 like "${test_name}: stderr" $stderr $stderr_pat "-lineanchor"
17 is "${test_name}: exit code" $exit_code 0