Author: David Spickett
Date: 2026-10-13T11:14:39+01:00
New Revision: d28ba69972436c1e5d8b068ae3f3cb277f86d6b2
URL: https://github.com/llvm/llvm-project/commit/d28ba69972436c1e5d8b068ae3f3cb277f86d6b2
DIFF: https://github.com/llvm/llvm-project/commit/d28ba69972436c1e5d8b068ae3f3cb277f86d6b2.diff
LOG: [lldb][minidump][test] Re-enable and xfail TLS test (#231425)
This has not been running / never was, because it did not have the test_
prefix. On both AArch64 and x86_64 (the two architectures we can save
minidumps on), we find the variable but its value is 0. I assume it has
always been this way, so xfail it.
Added:
Modified:
lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
index d82f05a0b47b8..49d262a73c1f4 100644
--- a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
+++ b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py
@@ -634,8 +634,10 @@ def minidump_deterministic_
diff erence(self):
self.assertTrue(self.dbg.DeleteTarget(target))
@skipUnlessPlatform(["linux"])
- @skipUnlessArch("x86_64")
- def minidump_saves_tls(self):
+ @skipIf(archs=no_match(["x86_64", "aarch64"]))
+ # We find the variable but its value is 0.
+ @expectedFailureAll(archs=["x86_64", "aarch64"])
+ def test_minidump_saves_tls(self):
self.build()
exe = self.getBuildArtifact("a.out")
try:
@@ -656,10 +658,10 @@ def minidump_saves_tls(self):
core_target = self.dbg.CreateTarget(None)
core_proc = core_target.LoadCore(tls_file)
frame = core_proc.GetThreadAtIndex(0).GetFrameAtIndex(0)
- tls_val = frame.FindValue("lf")
+ tls_val = frame.FindValue("lf", lldb.eValueTypeVariableGlobal)
self.assertEqual(tls_val.GetValueAsUnsigned(), 42)
- except:
+ finally:
self.assertTrue(self.dbg.DeleteTarget(target))
if os.path.isfile(tls_file):
os.unlink(tls_file)