summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib')
-rw-r--r--testsuite/lib/stap_run.exp2
-rw-r--r--testsuite/lib/stap_run2.exp5
-rw-r--r--testsuite/lib/stap_run_binary.exp2
3 files changed, 4 insertions, 5 deletions
diff --git a/testsuite/lib/stap_run.exp b/testsuite/lib/stap_run.exp
index d230e8e5..2d378154 100644
--- a/testsuite/lib/stap_run.exp
+++ b/testsuite/lib/stap_run.exp
@@ -14,7 +14,7 @@
# returns 1 if there was a problem
# Additional arguments are passed to stap as-is.
proc stap_run { TEST_NAME {LOAD_GEN_FUNCTION ""} {OUTPUT_CHECK_STRING ""} args } {
- if {![installtest_p]} { untested $TEST_NAME; return }
+ if {[info procs installtest_p] != "" && ![installtest_p]} { untested $TEST_NAME; return }
set cmd [concat {stap -v} $args]
if [file readable $TEST_NAME] {
diff --git a/testsuite/lib/stap_run2.exp b/testsuite/lib/stap_run2.exp
index a182a2c5..ebda0d6d 100644
--- a/testsuite/lib/stap_run2.exp
+++ b/testsuite/lib/stap_run2.exp
@@ -1,8 +1,7 @@
# stap_run2.exp
#
# Simple script for testing multiple lines of exact output.
-
-
+
# stap_run2 TEST_NAME
# TEST_NAME is path to the current test
# Additional arguments are passed to stap as-is.
@@ -12,7 +11,7 @@
set timeout 20
proc stap_run2 { TEST_NAME args } {
- if {![installtest_p]} { untested $TEST_NAME; return }
+ if {[info procs installtest_p] != "" && ![installtest_p]} { untested $TEST_NAME; return }
# fix up expected string
regsub -all \n $::result_string \r\n output
diff --git a/testsuite/lib/stap_run_binary.exp b/testsuite/lib/stap_run_binary.exp
index 6d5de4b8..f29e8f35 100644
--- a/testsuite/lib/stap_run_binary.exp
+++ b/testsuite/lib/stap_run_binary.exp
@@ -6,7 +6,7 @@
# global result_string must be set to the expected output
proc stap_run_binary { TEST_NAME} {
- if {![installtest_p]} { untested $TEST_NAME; return }
+ if {[info procs installtest_p] != "" && ![installtest_p]} {untested $TEST_NAME; return}
set hex_args {-ve 8/1 "%02x " "\n"}
set res [exec stap $TEST_NAME | hexdump $hex_args]