1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Use the regular conditional operator syntax instead of a clever hack.

llvm-svn: 110168
This commit is contained in:
Dan Gohman 2010-08-04 00:00:13 +00:00
parent aac19e4ffe
commit e75f31b55d

View File

@ -522,10 +522,10 @@ def executeTclTest(test, litConfig):
out,err,exitCode = res
if isXFail:
ok = exitCode != 0
status = (Test.XPASS, Test.XFAIL)[ok]
status = Test.XFAIL if ok else Test.XPASS
else:
ok = exitCode == 0
status = (Test.FAIL, Test.PASS)[ok]
status = Test.PASS if ok else Test.FAIL
if ok:
return (status,'')
@ -558,10 +558,10 @@ def executeShTest(test, litConfig, useExternalSh):
out,err,exitCode = res
if isXFail:
ok = exitCode != 0
status = (Test.XPASS, Test.XFAIL)[ok]
status = Test.XFAIL if ok else Test.XPASS
else:
ok = exitCode == 0
status = (Test.FAIL, Test.PASS)[ok]
status = Test.PASS if ok else Test.FAIL
if ok:
return (status,'')