diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-03-08 23:23:35 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-03-09 10:14:11 +0100 |
commit | 1d4cb9b5f957bd3825fd1f0cfa1df1c24a07164d (patch) | |
tree | 373f0d1e899860c03b52aa9f1585341d7d7c4125 /testsuite/lib | |
parent | da573399d560fc659ee45ae041dcb2bf5b9b0bf6 (diff) | |
download | systemtap-steved-1d4cb9b5f957bd3825fd1f0cfa1df1c24a07164d.tar.gz systemtap-steved-1d4cb9b5f957bd3825fd1f0cfa1df1c24a07164d.tar.xz systemtap-steved-1d4cb9b5f957bd3825fd1f0cfa1df1c24a07164d.zip |
Make stap_run2 count exact number of lines.
* testsuite/lib/stap_run2.exp: Compare found and expected number of lines.
* testsuite/systemtap.*/*.exp (result_string): Make number of lines exact.
Diffstat (limited to 'testsuite/lib')
-rw-r--r-- | testsuite/lib/stap_run2.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/lib/stap_run2.exp b/testsuite/lib/stap_run2.exp index 9849aefb..cb1c6615 100644 --- a/testsuite/lib/stap_run2.exp +++ b/testsuite/lib/stap_run2.exp @@ -29,5 +29,10 @@ proc stap_run2 { TEST_NAME args } { } incr n } - pass "$TEST_NAME" + if {[expr $n == [llength $expected]]} { + pass "$TEST_NAME" + } else { + fail "$TEST_NAME" + send_log "too few lines of output, got $n, expected [llength $expected]\n" + } } |