diff options
author | hunt <hunt> | 2007-10-01 15:29:27 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-10-01 15:29:27 +0000 |
commit | b71a5cbb7521034d43523096c890e5d9bd05e79c (patch) | |
tree | 16f3bdb8bf5d5e0add015b8e2bc8b56e989ba1cf /testsuite/systemtap.syscall | |
parent | c1c10f4b459dcd39c6d9d62cf902d20b455bfc08 (diff) | |
download | systemtap-steved-b71a5cbb7521034d43523096c890e5d9bd05e79c.tar.gz systemtap-steved-b71a5cbb7521034d43523096c890e5d9bd05e79c.tar.xz systemtap-steved-b71a5cbb7521034d43523096c890e5d9bd05e79c.zip |
2007-10-01 Martin Hunt <hunt@redhat.com>
* test.tcl (run_one_test): Append newlines when
using send_log().
Diffstat (limited to 'testsuite/systemtap.syscall')
-rw-r--r-- | testsuite/systemtap.syscall/ChangeLog | 5 | ||||
-rwxr-xr-x | testsuite/systemtap.syscall/test.tcl | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/testsuite/systemtap.syscall/ChangeLog b/testsuite/systemtap.syscall/ChangeLog index c8953b80..9811a707 100644 --- a/testsuite/systemtap.syscall/ChangeLog +++ b/testsuite/systemtap.syscall/ChangeLog @@ -1,3 +1,8 @@ +2007-10-01 Martin Hunt <hunt@redhat.com> + + * test.tcl (run_one_test): Append newlines when + using send_log(). + 2007-09-25 Martin Hunt <hunt@redhat.com> * test.tcl (run_one_test): Fix unsupported results. diff --git a/testsuite/systemtap.syscall/test.tcl b/testsuite/systemtap.syscall/test.tcl index 5d1db2a3..fe16358d 100755 --- a/testsuite/systemtap.syscall/test.tcl +++ b/testsuite/systemtap.syscall/test.tcl @@ -89,27 +89,27 @@ proc run_one_test {filename flags} { } else { set result "FAIL $testname" send_log "$testname FAILED. output of \"$cmd\" was:" - send_log "------------------------------------------" + send_log "\n------------------------------------------\n" send_log $output - send_log "------------------------------------------" - send_log "RESULTS: (\'*\' = MATCHED EXPECTED)" + send_log "\n------------------------------------------\n" + send_log "RESULTS: (\'*\' = MATCHED EXPECTED)\n" set i 0 foreach line [split $output "\n"] { if {[regexp "${testname}: " $line]} { if {[regexp $results($i) $line]} { - send_log "*$line" + send_log "*$line\n" incr i if {$i >= $ind} {break} } else { - send_log "$line" + send_log "$line\n" } } } if {$i < $ind} { - send_log "--------- EXPECTED and NOT MATCHED ----------" + send_log "--------- EXPECTED and NOT MATCHED ----------\n" } for {} {$i < $ind} {incr i} { - send_log "$results($i)" + send_log "$results($i)\n" } } cleanup |