Skip to content

Commit edd3cfa

Browse files
committed
Clear module in TestThreadLocal to prevent failure during teardown
1 parent ca32f6a commit edd3cfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/test/API/lang/cpp/thread_local/TestThreadLocal.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ def test_thread_local(self):
3939
process.Kill()
4040
lldbutil.run_to_breakpoint_do_run(self, target, main_bkpt)
4141

42+
# The test fails during tear down because the module isn't cleared.
43+
# Even though this test case is marked as xfail, a failure during
44+
# tear down still counts as an error.
45+
main_module.Clear()
46+
4247
self.expect(
4348
"expr tl_local_int",
4449
error=True,

0 commit comments

Comments
 (0)