summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/cu-decl.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/cu-decl.exp')
-rw-r--r--testsuite/systemtap.base/cu-decl.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/cu-decl.exp b/testsuite/systemtap.base/cu-decl.exp
index 42e683cb..ae06ad85 100644
--- a/testsuite/systemtap.base/cu-decl.exp
+++ b/testsuite/systemtap.base/cu-decl.exp
@@ -17,7 +17,9 @@ if { $res != "" } {
} else {
pass "$test target compilation"
}
-
-stap_compile $test 1 "{$script}"
-
+if {![utrace_p]} {
+ untested "$test : no kernel utrace support found"
+} else {
+ stap_compile $test 1 "{$script}"
+}
catch {exec rm $test}