summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/prologues.exp
diff options
context:
space:
mode:
authorfche <fche>2007-02-09 13:45:49 +0000
committerfche <fche>2007-02-09 13:45:49 +0000
commit44f753868fd81e3b5c614acc3a4898d5c812a610 (patch)
tree459dbe716908765a6d0c36fcb71812d7a30eb2d1 /testsuite/systemtap.base/prologues.exp
parent7d678473f851dadc2f5a4f6fe1a0bc7635750585 (diff)
downloadsystemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.tar.gz
systemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.tar.xz
systemtap-steved-44f753868fd81e3b5c614acc3a4898d5c812a610.zip
2007-02-09 Frank Ch. Eigler <fche@elastic.org>
PR 3965 * configure.ac: Add --enable-prologue option. * configure, config.in: Regenerated. * session.h (prologue_searching): New field. * main.cxx (main): Parse new "-P" option. Initialize based on autoconf flag. * stap.1.in, NEWS: Document it. * hash.cxx (find_hash): Include it in computation. * tapsets.cxx (query_func_info, query_cu): Respect it. 2007-02-09 Frank Ch. Eigler <fche@elastic.org> * systemtap.base/prologue.*: New test case.
Diffstat (limited to 'testsuite/systemtap.base/prologues.exp')
-rw-r--r--testsuite/systemtap.base/prologues.exp21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/prologues.exp b/testsuite/systemtap.base/prologues.exp
new file mode 100644
index 00000000..b349e839
--- /dev/null
+++ b/testsuite/systemtap.base/prologues.exp
@@ -0,0 +1,21 @@
+set test "prologues -P"
+set ok 0
+spawn stap -P $srcdir/$subdir/prologues.stp
+expect {
+ -re {read[^\r\n]*\r\n} { incr ok; exp_continue }
+ -re {write[^\r\n]*\r\n} { incr ok; exp_continue }
+ eof
+}
+wait
+if {$ok > 10} { pass $test } else { fail $test }
+
+set test "prologues no-P"
+set ok 0
+spawn stap $srcdir/$subdir/prologues.stp
+expect {
+ -re {read[^\r\n]*\r\n} { incr ok; exp_continue }
+ -re {write[^\r\n]*\r\n} { incr ok; exp_continue }
+ eof
+}
+wait
+if {$ok > 10} { pass $test } else { fail $test } \ No newline at end of file