summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsmith <dsmith>2007-07-12 15:38:20 +0000
committerdsmith <dsmith>2007-07-12 15:38:20 +0000
commite1ae40377570e3a0bfc94c5a9a891d403a5938ee (patch)
treef64e5dc6ae035fb9c6f6a3e488429a63dd68e1a6
parentd8c3d60289ab331223135dff0330510bd648368b (diff)
downloadsystemtap-steved-e1ae40377570e3a0bfc94c5a9a891d403a5938ee.tar.gz
systemtap-steved-e1ae40377570e3a0bfc94c5a9a891d403a5938ee.tar.xz
systemtap-steved-e1ae40377570e3a0bfc94c5a9a891d403a5938ee.zip
2007-07-12 David Smith <dsmith@redhat.com>
* systemtap.maps/pmap_agg_overflow.exp: On single processor systems, this test reported an unsupported test and a test failure when it should have only reported an unsupported test. Fixed.
-rw-r--r--testsuite/ChangeLog6
-rw-r--r--testsuite/systemtap.maps/pmap_agg_overflow.exp5
2 files changed, 10 insertions, 1 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog
index 6e5d6e1a..852e6bac 100644
--- a/testsuite/ChangeLog
+++ b/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-12 David Smith <dsmith@redhat.com>
+
+ * systemtap.maps/pmap_agg_overflow.exp: On single processor
+ systems, this test reported an unsupported test and a test failure
+ when it should have only reported an unsupported test. Fixed.
+
2007-07-10 Martin Hunt <hunt@localhost.localdomain>
* systemtap.context/context.exp: Copy modules to
diff --git a/testsuite/systemtap.maps/pmap_agg_overflow.exp b/testsuite/systemtap.maps/pmap_agg_overflow.exp
index 9d7a48ad..1b0a7234 100644
--- a/testsuite/systemtap.maps/pmap_agg_overflow.exp
+++ b/testsuite/systemtap.maps/pmap_agg_overflow.exp
@@ -8,6 +8,7 @@ set pass2 "WARNING: Number of errors: 2, skipped probes: 0\r\n"
set skip_result "^WARNING: This test only applies to smp systems\.\.\.\r\n"
set pass 0
+set unsupported 0
spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp
expect {
@@ -15,7 +16,7 @@ expect {
-re $pass1 {incr pass; exp_continue}
-re $pass2 {incr pass; exp_continue}
-re $skip_result {
- unsupported "$test requires smp"
+ set unsupported 1
}
timeout {
send "\003"
@@ -29,6 +30,8 @@ wait
if {$pass == 3} {
pass $test
+} elseif {$unsupported == 1} {
+ unsupported "$test requires smp"
} else {
fail "$test ($pass)"
}