summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/cmd_parse.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/cmd_parse.exp')
-rw-r--r--testsuite/systemtap.base/cmd_parse.exp26
1 files changed, 13 insertions, 13 deletions
diff --git a/testsuite/systemtap.base/cmd_parse.exp b/testsuite/systemtap.base/cmd_parse.exp
index b97d9448..7f5f70d9 100644
--- a/testsuite/systemtap.base/cmd_parse.exp
+++ b/testsuite/systemtap.base/cmd_parse.exp
@@ -12,7 +12,7 @@ expect {
timeout {fail "cmd_parse1: unexpected timeout"}
eof {fail "cmd_parse1: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {echo "hello "\"world\"} -we {probe begin {}}
expect {
@@ -21,7 +21,7 @@ expect {
timeout {fail "cmd_parse2: unexpected timeout"}
eof {fail "cmd_parse2: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {sh -c '(a="hello world"; echo $a)'} -we {probe begin {}}
expect {
@@ -30,7 +30,7 @@ expect {
timeout {fail "cmd_parse3: unexpected timeout"}
eof {fail "cmd_parse3: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {sh -c '(a="hello "\"world\"; echo $a)'} -we {probe begin {}}
expect {
@@ -39,7 +39,7 @@ expect {
timeout {fail "cmd_parse4: unexpected timeout"}
eof {fail "cmd_parse4: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {sh -c '(a="hello "world; echo $a)'} -we {probe begin {}}
expect {
@@ -48,7 +48,7 @@ expect {
timeout {fail "cmd_parse5: unexpected timeout"}
eof {fail "cmd_parse5: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {bash -c '((a=42+7)); echo "The answer is $a"'} -we {probe begin {}}
expect {
@@ -57,7 +57,7 @@ expect {
timeout {fail "cmd_parse6: unexpected timeout"}
eof {fail "cmd_parse6: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -c {sh -c '(echo "Hello World" 1>&2) > /dev/null'} -we {probe begin {}}
expect {
@@ -66,7 +66,7 @@ expect {
timeout {fail "cmd_parse7: unexpected timeout"}
eof {fail "cmd_parse7: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -l {vm.*}
expect {
@@ -75,7 +75,7 @@ expect {
timeout {fail "cmd_parse8: unexpected timeout"}
eof {fail "cmd_parse8: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn stap -e {probe begin { printf("%d %s\n", argc, argv[$1]) exit() }} 1
expect {
@@ -84,7 +84,7 @@ expect {
timeout { fail "cmd_parse9 timeout" }
eof { fail "cmd_parse9 eof" }
}
-wait;close
+wait;catch {close}
spawn stap -e {probe begin { printf("%d %s\n", argc, argv[$1]) exit() }} 5 a b c d
expect {
@@ -93,7 +93,7 @@ expect {
timeout { fail "cmd_parse10 timeout" }
eof { fail "cmd_parse10 eof" }
}
-wait;close
+wait;catch {close}
spawn stap -e {probe begin { printf("%d %s\n", argc, argv[$1]) exit() }} 10 a b c d
expect {
@@ -102,7 +102,7 @@ expect {
timeout { fail "cmd_parse11 timeout" }
eof { fail "cmd_parse11 eof" }
}
-wait;close
+wait;catch {close}
spawn stap -e {probe begin { printf("%d %s\n", argc, argv[0]) exit() }}
expect {
@@ -111,7 +111,7 @@ expect {
timeout { fail "cmd_parse12 timeout" }
eof { fail "cmd_parse12 eof" }
}
-wait;close
+wait;catch {close}
spawn stap -L syscall.a*
expect {
@@ -120,7 +120,7 @@ expect {
timeout {fail "cmd_parse13: unexpected timeout"}
eof {fail "cmd_parse13: unexpected EOF"}
}
-wait;close
+wait;catch {close}
spawn sh -c "stap -v -v --vp 01020 -h 2>&1"
expect {