[lldb][test] Correctly skip a test on a 32-bit target (#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'
```
This commit is contained in:
Igor Kudrin 2025-11-19 13:38:41 -08:00 committed by GitHub
parent e0c265d1c0
commit 12d72050e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ class LibcxxInvalidStringDataFormatterTestCase(TestBase):
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(