summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib')
-rw-r--r--testsuite/lib/stap_run2.exp7
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"
+ }
}