From: Reid Spencer Date: Sat, 21 Apr 2007 18:53:12 +0000 (+0000) Subject: Always print the same "PR" information in the same location (just after X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6cdf4a93a7683d824f0c1677b804b3eea0ffcf6f;p=oota-llvm.git 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 --- diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index fbab246aae0..97eb05822eb 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -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 { }