summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base
diff options
context:
space:
mode:
authorwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-03 01:37:14 -0400
committerwenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com>2008-04-03 01:37:14 -0400
commit285477856b016f3d16c339b7d7f00422cbe1795f (patch)
treeac020d44545446002bd4debadcfe6dc3a17a4af1 /testsuite/systemtap.base
parenteace89a86a89977dccb4e943192becc5be47cef1 (diff)
downloadsystemtap-steved-285477856b016f3d16c339b7d7f00422cbe1795f.tar.gz
systemtap-steved-285477856b016f3d16c339b7d7f00422cbe1795f.tar.xz
systemtap-steved-285477856b016f3d16c339b7d7f00422cbe1795f.zip
emphasize the regexp math
Diffstat (limited to 'testsuite/systemtap.base')
-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)" }