llvm.org GIT mirror llvm / e1390c4
Use the regular conditional operator syntax instead of a clever hack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110168 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
521521 out,err,exitCode = res
522522 if isXFail:
523523 ok = exitCode != 0
524 status = (Test.XPASS, Test.XFAIL)[ok]
524 status = Test.XFAIL if ok else Test.XPASS
525525 else:
526526 ok = exitCode == 0
527 status = (Test.FAIL, Test.PASS)[ok]
527 status = Test.PASS if ok else Test.FAIL
528528
529529 if ok:
530530 return (status,'')
557557 out,err,exitCode = res
558558 if isXFail:
559559 ok = exitCode != 0
560 status = (Test.XPASS, Test.XFAIL)[ok]
560 status = Test.XFAIL if ok else Test.XPASS
561561 else:
562562 ok = exitCode == 0
563 status = (Test.FAIL, Test.PASS)[ok]
563 status = Test.PASS if ok else Test.FAIL
564564
565565 if ok:
566566 return (status,'')