[Lldb-commits] [lldb] [lldb][test] Correctly skip a test on a 32-bit target (PR #168631)
Igor Kudrin via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 18 15:46:05 PST 2025
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/168631
The test was added in #147252. On a 32-bit target, it fails with error:
```
File "...\TestDataFormatterLibcxxInvalidString.py", line 23, in test
self.skip()
^^^^^^^^^
AttributeError: 'LibcxxInvalidStringDataFormatterTestCase' object has no attribute 'skip'
```
>From c671814a94db33ec4bd99cb94631a23dbc6373f5 Mon Sep 17 00:00:00 2001
From: Igor Kudrin <ikudrin at accesssoftek.com>
Date: Tue, 18 Nov 2025 15:43:55 -0800
Subject: [PATCH] [lldb][test] Correctly skip a test on a 32-bit target
The test was added in #147252. On a 32-bit target, it fails with error:
...
File "...\TestDataFormatterLibcxxInvalidString.py", line 23, in test
self.skip()
^^^^^^^^^
AttributeError: 'LibcxxInvalidStringDataFormatterTestCase' object has no attribute 'skip'
---
.../invalid-string/TestDataFormatterLibcxxInvalidString.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/invalid-string/TestDataFormatterLibcxxInvalidString.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/invalid-string/TestDataFormatterLibcxxInvalidString.py
index ae8e0ac08c2b0..b504c01b06da4 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/invalid-string/TestDataFormatterLibcxxInvalidString.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/invalid-string/TestDataFormatterLibcxxInvalidString.py
@@ -20,7 +20,7 @@ def test(self):
frame = thread.frames[0]
if not self.process().GetAddressByteSize() == 8:
- self.skip()
+ self.skipTest("The test requires a 64-bit process")
# The test assumes that std::string is in its cap-size-data layout.
self.expect(
More information about the lldb-commits
mailing list