summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuite/ChangeLog5
-rw-r--r--testsuite/lib/stap_run.exp2
-rw-r--r--testsuite/lib/stap_run2.exp2
3 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index 534d9e09..b252c0eb 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-23 David Smith <dsmith@redhat.com>
+
+ * lib/stap_run.exp: Handles cached module.
+ * lib/stap_run2.exp: Ditto.
+
2006-10-23 William Cohen <wcohen@redhat.com>
* systemtap.maps/absentstats.exp: Increase timeout for slow machines.
diff --git a/testsuite/lib/stap_run.exp b/testsuite/lib/stap_run.exp
index 2d378154..801f1265 100644
--- a/testsuite/lib/stap_run.exp
+++ b/testsuite/lib/stap_run.exp
@@ -24,6 +24,8 @@ proc stap_run { TEST_NAME {LOAD_GEN_FUNCTION ""} {OUTPUT_CHECK_STRING ""} args }
expect {
-re {^Pass\ ([1234]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms.\r\n}
{set pass$expect_out(1,string) "\t$expect_out(2,string)\t$expect_out(3,string)\t$expect_out(4,string)"; exp_continue}
+ -re {^Pass\ ([34]): using cached .+\r\n}
+ {set pass$expect_out(1,string) "\t0\t0\t0"; exp_continue}
-re {^Pass 5: starting run.\r\n} {exp_continue}
-timeout 30 -re "^systemtap starting probe\r\n" {
pass "$TEST_NAME startup"
diff --git a/testsuite/lib/stap_run2.exp b/testsuite/lib/stap_run2.exp
index ebda0d6d..d65e3874 100644
--- a/testsuite/lib/stap_run2.exp
+++ b/testsuite/lib/stap_run2.exp
@@ -26,6 +26,8 @@ proc stap_run2 { TEST_NAME args } {
expect {
-re {^Pass\ ([1234]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms.\r\n}
{set pass$expect_out(1,string) "\t$expect_out(2,string)\t$expect_out(3,string)\t$expect_out(4,string)"; exp_continue}
+ -re {^Pass\ ([34]): using cached .+\r\n}
+ {set pass$expect_out(1,string) "\t0\t0\t0"; exp_continue}
-re {^Pass 5: starting run.\r\n} {exp_continue}
-ex $output {
pass "$TEST_NAME passed"