summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/uprobes.exp
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-09-11 16:23:16 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-09-11 16:23:16 -0400
commit5249b0e41d82bf0ad175662637101cc925de7ba2 (patch)
treed74a77c81e4b3bdf6b22b5ea08e0fa257ffaed5f /testsuite/systemtap.base/uprobes.exp
parent35dc8b0471eb566a2e15a1ed24e9ad26362cf6b1 (diff)
downloadsystemtap-steved-5249b0e41d82bf0ad175662637101cc925de7ba2.tar.gz
systemtap-steved-5249b0e41d82bf0ad175662637101cc925de7ba2.tar.xz
systemtap-steved-5249b0e41d82bf0ad175662637101cc925de7ba2.zip
PR6871: test case
Diffstat (limited to 'testsuite/systemtap.base/uprobes.exp')
-rw-r--r--testsuite/systemtap.base/uprobes.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/uprobes.exp b/testsuite/systemtap.base/uprobes.exp
index 8fbe6da6..391f5028 100644
--- a/testsuite/systemtap.base/uprobes.exp
+++ b/testsuite/systemtap.base/uprobes.exp
@@ -8,6 +8,7 @@ set fp [open $path "w"]
puts $fp "int main (int argc, char *argv[])"
puts $fp "{"
puts $fp "if (argc > 1) main (argc - 1, argv);"
+puts $fp "return 0;"
puts $fp "}"
close $fp
@@ -30,8 +31,8 @@ expect {
-re {^Disabling[^\r\n]*\r\n} { exp_continue }
-re {^Uprobes[^\r\n]*\r\n} { exp_continue }
-re {^Cache[^\r\n]*\r\n} { exp_continue }
- -re {^process[^\r\n]*jennie[^\r\n]*main[^\r\n]*call\r\n} { incr ok; exp_continue }
- -re {^process[^\r\n]*jennie[^\r\n]*main[^\r\n]*return\r\n} { incr ok; exp_continue }
+ -re {^process[^\r\n]*jennie[^\r\n]*main[^\r\n]*call argc=0x[1-5][^\r\n]*\r\n} { incr ok; exp_continue }
+ -re {^process[^\r\n]*jennie[^\r\n]*main[^\r\n]*return return=0x0[^\r\n]*\r\n} { incr ok; exp_continue }
-timeout 30
timeout { }
eof { }