diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-01-19 23:44:54 -0500 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-01-19 23:44:54 -0500 |
commit | ac9a5a0b7a603fcae02541726416b6ccdf41efd9 (patch) | |
tree | 4b9441337cccf7dae69cdb70ccd06974ec0d1ef2 /testsuite/systemtap.base/bz6850.exp | |
parent | dece4f8f994c78aca9213cfb8f20e6d979ff738d (diff) | |
download | systemtap-steved-ac9a5a0b7a603fcae02541726416b6ccdf41efd9.tar.gz systemtap-steved-ac9a5a0b7a603fcae02541726416b6ccdf41efd9.tar.xz systemtap-steved-ac9a5a0b7a603fcae02541726416b6ccdf41efd9.zip |
Add checking utrace in test cases.
Diffstat (limited to 'testsuite/systemtap.base/bz6850.exp')
-rw-r--r-- | testsuite/systemtap.base/bz6850.exp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/bz6850.exp b/testsuite/systemtap.base/bz6850.exp index b06b1696..73fedc8a 100644 --- a/testsuite/systemtap.base/bz6850.exp +++ b/testsuite/systemtap.base/bz6850.exp @@ -3,6 +3,15 @@ set test bz6850 catch {exec gcc -g -o bz6850 $srcdir/$subdir/bz6850.c} err if {$err == "" && [file exists bz6850]} then { pass "$test compile" } else { fail "$test compile" } +# Try to find utrace_attach symbol in /proc/kallsyms +# copy from utrace_p5.exp +set utrace_support_found 0 +set path "/proc/kallsyms" +if {! [catch {exec grep -q utrace_attach $path} dummy]} { + set utrace_support_found 1 +} +if {$utrace_support_found == 0} { untested "$test -p4"; untested "$test -p5"; return } + set rc [stap_run_batch $srcdir/$subdir/bz6850.stp] if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" } |