You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are all the same test: The actual test is lldb-unit :: Symbol/./SymbolTests.exe and it can be marked as XFAIL using the CLI flag or env var, because it exists by the time lit attempts to mark the list of discovered tests as XFAIL. But the last four are test cases inside SymbolTests.exe and lit doesn't know about them until after SymbolTests.exe runs and fails, at which point the googletest module reads them from the gtest json file and registers them as failures.
The text was updated successfully, but these errors were encountered:
…vm#102986)
When a test case inside of a gtest suite fails, we report a failure
which causes the entire `ninja check-lldb` invocation to fail, even if
the outer test case is marked as XFAIL - each test case result is
reported as its own lit test run. This PR updates lit so it checks
whether each test case's parent test suite is XFAIL before setting the
status to FAIL.
This is especially problematic because the failing tests can't manually
be marked as XFAIL, due to
llvm#102264.
Fixesllvm#102265
### Repro instructions
1. Modify any gtest test case to generate a failure.
2. Mark the outer lit test with XFAIL using either `--xfail-tests` flag
or `LIT_XFAIL` env var.
3. Run the tests
4. Observe the lit test is XFAIL as expected, but the failed child test
cases show up as separate failures.
Co-authored-by: kendal <kendal@thebrowser.company>
(cherry picked from commit 9f89d31)
Unit tests such as this one from the downstream
swiftlang/llvm-project
repo can't be marked as XFAIL using lit's--xfail
flag andLIT_XFAIL
env var.If these tests are run, the final lit summary output says that these tests failed:
These are all the same test: The actual test is
lldb-unit :: Symbol/./SymbolTests.exe
and it can be marked as XFAIL using the CLI flag or env var, because it exists by the time lit attempts to mark the list of discovered tests as XFAIL. But the last four are test cases inside SymbolTests.exe and lit doesn't know about them until after SymbolTests.exe runs and fails, at which point thegoogletest
module reads them from the gtest json file and registers them as failures.The text was updated successfully, but these errors were encountered: