Always print the same "PR" information in the same location (just after

the test name) in all cases (PASS, XPASS, FAIL, XFAIL). This makes the
output consistent and more amenable to parsing by nightly test.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-21 18:53:12 +00:00
parent 1e55bf251c
commit 6cdf4a93a7

View File

@ -8,26 +8,26 @@ proc execOneLine { test PRS outcome lineno line } {
if { $PRS != ""} { if { $PRS != ""} {
set PRS " for $PRS" set PRS " for $PRS"
} }
set errmsg " at line $lineno$PRS\nwhile running: $line\n$errmsg" set errmsg " at line $lineno\nwhile running: $line\n$errmsg"
switch "$code" { switch "$code" {
CHILDSTATUS { CHILDSTATUS {
set status [lindex $::errorCode 2] set status [lindex $::errorCode 2]
if { $status != 0 } { if { $status != 0 } {
set resultmsg "$test\nFailed with exit($status)$errmsg" set resultmsg "$test$PRS\nFailed with exit($status)$errmsg"
} }
} }
CHILDKILLED { CHILDKILLED {
set signal [lindex $::errorCode 2] set signal [lindex $::errorCode 2]
set resultmsg "$test\nFailed with signal($signal)$errmsg" set resultmsg "$test$PRS\nFailed with signal($signal)$errmsg"
} }
CHILDSUSP { CHILDSUSP {
set signal [lindex $::errorCode 2] set signal [lindex $::errorCode 2]
set resultmsg "$test\nFailed with suspend($signal)$errmsg" set resultmsg "$test$PRS\nFailed with suspend($signal)$errmsg"
} }
POSIX { POSIX {
set posixNum [lindex $::errorCode 1] set posixNum [lindex $::errorCode 1]
set posixMsg [lindex $::errorCode 2] set posixMsg [lindex $::errorCode 2]
set resultmsg "$test\nFailed with posix($posixNum,$posixMsg)$errmsg" set resultmsg "$test$PRS\nFailed with posix($posixNum,$posixMsg)$errmsg"
} }
NONE { NONE {
} }