summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-17 22:06:52 -0400
committerwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-05-22 22:06:04 -0400
commit11e837b73f6533df0977609bea1952fa8ae56718 (patch)
treea2eb2b79fefcdada0cdd2a17556f8b1dd4884c91 /testsuite
parentcf314c0fcb625876d8440291af6a21b86abf66f4 (diff)
downloadsystemtap-steved-11e837b73f6533df0977609bea1952fa8ae56718.tar.gz
systemtap-steved-11e837b73f6533df0977609bea1952fa8ae56718.tar.xz
systemtap-steved-11e837b73f6533df0977609bea1952fa8ae56718.zip
Narrow the regexp matching in stmtvars.exp
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/systemtap.base/stmtvars.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/stmtvars.exp b/testsuite/systemtap.base/stmtvars.exp
index 6e950ea0..ee0dcf20 100644
--- a/testsuite/systemtap.base/stmtvars.exp
+++ b/testsuite/systemtap.base/stmtvars.exp
@@ -5,7 +5,7 @@ set pc 0
set vars ""
spawn stap -e "probe kernel.function(\"sys_open\") {\$foo}" -p4 -vv -u
expect {
- -re {probe sys_open.*pc=(0x.*)\r\n} { set pc $expect_out(1,string); exp_continue }
+ -re {probe sys_open.*pc=(0x.*)\r\nsemantic} { set pc $expect_out(1,string); exp_continue }
-re {alternatives: ([^\r\n]*) identifier [^\r\n]*\r\n} { set vars $expect_out(1,string)
exp_continue }
timeout { fail "$test (timeout)" }
@@ -19,7 +19,7 @@ set pc2 0
set vars2 ""
spawn stap -e "probe kernel.statement($pc) {\$foo}" -p4 -vv -u
expect {
- -re {probe sys_open.*pc=(0x.*)\r\n} { set pc2 $expect_out(1,string); exp_continue }
+ -re {probe sys_open.*pc=(0x.*)\r\nsemantic} { set pc2 $expect_out(1,string); exp_continue }
-re {alternatives: ([^\r\n]*) identifier [^\r\n]*\r\n} { set vars2 $expect_out(1,string)
exp_continue }
timeout { fail "$test (timeout)" }