Author: Jonas Devlieghere Date: 2023-07-13T15:43:59-07:00 New Revision: b716d4e58543396894badd6ea8115c147ed12fae
URL: https://github.com/llvm/llvm-project/commit/b716d4e58543396894badd6ea8115c147ed12fae DIFF: https://github.com/llvm/llvm-project/commit/b716d4e58543396894badd6ea8115c147ed12fae.diff LOG: [lldb] Move decorators to test method Make sure TestCTF only run on Darwin when ctfconvert and llvm-objdump are available. Added: Modified: lldb/test/API/macosx/ctf/TestCTF.py Removed: ################################################################################ diff --git a/lldb/test/API/macosx/ctf/TestCTF.py b/lldb/test/API/macosx/ctf/TestCTF.py index fc6d7cf5ee6775..fc8328a73c3083 100644 --- a/lldb/test/API/macosx/ctf/TestCTF.py +++ b/lldb/test/API/macosx/ctf/TestCTF.py @@ -18,17 +18,20 @@ def no_objcopy(self): return "llvm-objcopy not found in environment" return None + @skipTestIfFn(no_ctf_convert) + @skipTestIfFn(no_objcopy) + @skipUnlessDarwin def test(self): self.build() self.do_test() + @skipTestIfFn(no_ctf_convert) + @skipTestIfFn(no_objcopy) + @skipUnlessDarwin def test_compressed(self): self.build(dictionary={"COMPRESS_CTF": "YES"}) self.do_test() - @skipTestIfFn(no_ctf_convert) - @skipTestIfFn(no_objcopy) - @skipUnlessDarwin def do_test(self): lldbutil.run_to_name_breakpoint(self, "printf") _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits