38 lines · python
1from lldbsuite.test.decorators import *2from lldbsuite.test.lldbtest import *3from lldbsuite.test import lldbutil4 5 6class Universal64TestCase(TestBase):7 NO_DEBUG_INFO_TESTCASE = True8 9 def do_test(self):10 exe = self.getBuildArtifact("fat.out")11 target = self.dbg.CreateTarget(exe)12 13 # Make sure the binary and the dSYM are in the image list.14 self.expect("image list", patterns=["fat.out", "fat.out.dSYM"])15 16 # The dynamic loader doesn't support fat64 executables so we can't17 # actually launch them here.18 19 # The Makefile manually invokes clang.20 @skipIfLLVMTargetMissing("X86")21 @skipIfAsan22 @skipUnlessDarwin23 @skipIfDarwinEmbedded24 def test_universal64_executable(self):25 """Test fat64 universal executable"""26 self.build(debug_info="dsym")27 self.do_test()28 29 # The Makefile manually invokes clang.30 @skipIfLLVMTargetMissing("X86")31 @skipIfAsan32 @skipUnlessDarwin33 @skipIfDarwinEmbedded34 def test_universal64_dsym(self):35 """Test fat64 universal dSYM"""36 self.build(debug_info="dsym", dictionary={"FAT64_DSYM": "1"})37 self.do_test()38