forked from OSchip/llvm-project
[libc++] Properly handle --no-execute in the new format
If --no-execute is passed, we shouldn't report XFAIL tests as passing, or they will be considered to XPASS.
This commit is contained in:
parent
4687b45433
commit
05ef484df5
|
@ -333,7 +333,7 @@ class CxxStandardLibraryTest(lit.formats.TestFormat):
|
|||
return script
|
||||
|
||||
if litConfig.noExecute:
|
||||
return lit.Test.Result(lit.Test.PASS)
|
||||
return lit.Test.Result(lit.Test.XFAIL if test.isExpectedToFail() else lit.Test.PASS)
|
||||
else:
|
||||
_, tmpBase = lit.TestRunner.getTempPaths(test)
|
||||
useExternalSh = True
|
||||
|
|
Loading…
Reference in New Issue