diff options
-rw-r--r-- | testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | testsuite/systemtap.maps/pmap_agg_overflow.exp | 5 |
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)" } |