[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:
Louis Dionne 2020-04-27 13:37:00 -04:00
parent 4687b45433
commit 05ef484df5
1 changed files with 1 additions and 1 deletions

View File

@ -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