+2008-11-12 Frank Ch. Eigler <fche@elastic.org>
+
+ PR6964.
+ * systemtap.base/cmd_parse.exp: Remove exit() hack.
+
2008-11-12 David Smith <dsmith@redhat.com>
* systemtap.context/num_args.tcl: Improved error handling of
return
}
-spawn stap -c {echo "hello world"} -we {probe begin {exit()}}
+spawn stap -c {echo "hello world"} -we {probe begin {}}
expect {
-timeout 60
"hello world" {pass "cmd_parse1"}
}
wait;close
-spawn stap -c {echo "hello "\"world\"} -we {probe begin {exit()}}
+spawn stap -c {echo "hello "\"world\"} -we {probe begin {}}
expect {
-timeout 60
"hello \"world\"" {pass "cmd_parse2"}
}
wait;close
-spawn stap -c {sh -c '(a="hello world"; echo $a)'} -we {probe begin {exit()}}
+spawn stap -c {sh -c '(a="hello world"; echo $a)'} -we {probe begin {}}
expect {
-timeout 60
"hello world" {pass "cmd_parse3"}
}
wait;close
-spawn stap -c {sh -c '(a="hello "\"world\"; echo $a)'} -we {probe begin {exit()}}
+spawn stap -c {sh -c '(a="hello "\"world\"; echo $a)'} -we {probe begin {}}
expect {
-timeout 60
"hello \"world\"" {pass "cmd_parse4"}
}
wait;close
-spawn stap -c {sh -c '(a="hello "world; echo $a)'} -we {probe begin {exit()}}
+spawn stap -c {sh -c '(a="hello "world; echo $a)'} -we {probe begin {}}
expect {
-timeout 60
"hello world" {pass "cmd_parse5"}
}
wait;close
-spawn stap -c {bash -c '((a=42+7)); echo "The answer is $a"'} -we {probe begin {exit()}}
+spawn stap -c {bash -c '((a=42+7)); echo "The answer is $a"'} -we {probe begin {}}
expect {
-timeout 60
"The answer is 49" {pass "cmd_parse6"}
}
wait;close
-spawn stap -c {sh -c '(echo "Hello World" 1>&2) > /dev/null'} -we {probe begin {exit()}}
+spawn stap -c {sh -c '(echo "Hello World" 1>&2) > /dev/null'} -we {probe begin {}}
expect {
-timeout 60
"Hello World" {pass "cmd_parse7"}