forked from OSchip/llvm-project
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. llvm-svn: 36311
This commit is contained in:
parent
c0d770b8a1
commit
e01dd63b87
|
@ -8,26 +8,26 @@ proc execOneLine { test PRS outcome lineno line } {
|
|||
if { $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" {
|
||||
CHILDSTATUS {
|
||||
set status [lindex $::errorCode 2]
|
||||
if { $status != 0 } {
|
||||
set resultmsg "$test\nFailed with exit($status)$errmsg"
|
||||
set resultmsg "$test$PRS\nFailed with exit($status)$errmsg"
|
||||
}
|
||||
}
|
||||
CHILDKILLED {
|
||||
set signal [lindex $::errorCode 2]
|
||||
set resultmsg "$test\nFailed with signal($signal)$errmsg"
|
||||
set resultmsg "$test$PRS\nFailed with signal($signal)$errmsg"
|
||||
}
|
||||
CHILDSUSP {
|
||||
set signal [lindex $::errorCode 2]
|
||||
set resultmsg "$test\nFailed with suspend($signal)$errmsg"
|
||||
set resultmsg "$test$PRS\nFailed with suspend($signal)$errmsg"
|
||||
}
|
||||
POSIX {
|
||||
set posixNum [lindex $::errorCode 1]
|
||||
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 {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue