================
@@ -105,6 +105,20 @@ def test_resolve_file_address(self):
self.assertIsNotNone(data_section2)
self.assertEqual(data_section.name, data_section2.name)
+ def test_get_arch_name(self):
+ d = {"EXE": "b.out"}
+ self.build(dictionary=d)
+ self.setTearDownCleanup(dictionary=d)
+ target = self.create_simple_target("b.out")
+
+ arch_name = target.arch_name
+ self.assertNotEqual(len(arch_name), 0, "Got an arch name string")
----------------
n2h9 wrote:
No this is not a correct one, if I run test specifying a different arch, like
this
```
./build/bin/lldb-dotest \
-v -p TestTargetAPI.py \
-f test_get_arch_name_dwarf \
-f test_get_arch_name_dwo \
-f test_get_arch_name_dsym \
--arch aarch64 \
lldb/test/API/python_api/target
```
arch_name returns me `x86_64` :cry:
let me double check why . . .
https://github.com/llvm/llvm-project/pull/168273
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits