Skip to content

Commit ec2c548

Browse files
authored
Merge pull request #9253 from kendalharland/kendal/fix-gtest-xfail
Cherry-pick: [lldb][test] Mark gtest cases as XFAIL if the test suite is XFAIL (llvm#102986)
2 parents b5c6005 + 4abee04 commit ec2c548

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/utils/lit/lit/formats/googletest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,11 @@ def remove_gtest(tests):
334334
returnCode = lit.Test.SKIPPED
335335
elif "failures" in testinfo:
336336
has_failure_in_shard = True
337-
returnCode = lit.Test.FAIL
337+
returnCode = (
338+
lit.Test.XFAIL
339+
if test.isExpectedToFail()
340+
else lit.Test.FAIL
341+
)
338342
output = header
339343
for fail in testinfo["failures"]:
340344
output += fail["failure"] + "\n"

0 commit comments

Comments
 (0)