diff options
| author | jimingham <jingham@apple.com> | 2024-10-30 09:25:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 09:25:47 -0700 |
| commit | a575e6e5ca1eb7b2ae4b906f9bf3be2ba20a80a0 (patch) | |
| tree | cfe11117de6e55fdd640dec8bac29cec0b990ed0 /lldb/test/API/python_api | |
| parent | 6bf4476ffb6bab661d59dee361ab845b2f68d9b1 (diff) | |
| download | llvm-a575e6e5ca1eb7b2ae4b906f9bf3be2ba20a80a0.zip llvm-a575e6e5ca1eb7b2ae4b906f9bf3be2ba20a80a0.tar.gz llvm-a575e6e5ca1eb7b2ae4b906f9bf3be2ba20a80a0.tar.bz2 | |
Fix a couple of tests that were incorrectly using configuration.dwarf_version (#114161)
The tests were using the variable directly to get the dwarf version used
for the test. That's only the overridden value, and won't be set if
we're using the compiler default. I also put a comment by the variable
to make sure people don't make the same mistake in the future.
Diffstat (limited to 'lldb/test/API/python_api')
| -rw-r--r-- | lldb/test/API/python_api/type/TestTypeList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/API/python_api/type/TestTypeList.py b/lldb/test/API/python_api/type/TestTypeList.py index bc4d00c..0987927 100644 --- a/lldb/test/API/python_api/type/TestTypeList.py +++ b/lldb/test/API/python_api/type/TestTypeList.py @@ -6,7 +6,7 @@ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil - +from lldbsuite.test import lldbplatformutil class TypeAndTypeListTestCase(TestBase): def setUp(self): @@ -248,7 +248,7 @@ class TypeAndTypeListTestCase(TestBase): self.assertEqual(myint_arr_element_type, myint_type) # Test enum methods. Requires DW_AT_enum_class which was added in Dwarf 4. - if configuration.dwarf_version >= 4: + if int(lldbplatformutil.getDwarfVersion()) >= 4: enum_type = target.FindFirstType("EnumType") self.assertTrue(enum_type) self.DebugSBType(enum_type) |
