From b3c3ca7cb6c0280e8116845d6513b786ac0caf83 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 21 Nov 2008 15:10:50 -0500 Subject: PR5689 part 2: separate skip counters for low-stack and reentrancy cases --- testsuite/systemtap.base/skipped.exp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 testsuite/systemtap.base/skipped.exp (limited to 'testsuite/systemtap.base') diff --git a/testsuite/systemtap.base/skipped.exp b/testsuite/systemtap.base/skipped.exp new file mode 100644 index 00000000..8c491037 --- /dev/null +++ b/testsuite/systemtap.base/skipped.exp @@ -0,0 +1,21 @@ +set test "skip tracking" + +if {! [installtest_p]} { untested $test; return } + +set cpus [exec sh -c "grep ^processor /proc/cpuinfo | wc -l"] +if {$cpus < 2} { unsupported $test; return } + +set ok 0 +spawn stap -e "probe timer.s(5) {exit()} probe timer.profile,syscall.* {f++} global f" -DMAXTRYLOCK=0 -tu +expect { + -timeout 30 + -re {^WARNING: Number of errors: 0, skipped probes: [0-9]+\r\n} { incr ok; exp_continue } + -re {^WARNING: Skipped due to global .f. lock timeout: [0-9]+\r\n} { incr ok; exp_continue } + -re {^probe timer.profile[^\r\n]+, hits: [0-9]+[^\r\n]+\r\n} { incr ok; exp_continue } + eof { } + timeout { fail "$test (timeout)" } +} +catch {close} +catch {wait} + +if {$ok >= 3} { pass "$test ($cpus $ok)" } else { fail "$test ($cpus $ok)" } -- cgit