[Lldb-commits] [PATCH] D134574: [lldb][test] 4 - Add gmodules test category explicitly where previously done implicitly
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 23 16:55:41 PDT 2022
Michael137 updated this revision to Diff 462622.
Michael137 added a comment.
- Add decorator to another test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134574/new/
https://reviews.llvm.org/D134574
Files:
lldb/test/API/lang/cpp/gmodules/templates/TestGModules.py
lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
lldb/test/API/lang/objc/modules-hash-mismatch/TestClangModulesHashMismatch.py
lldb/test/API/lang/objc/modules-incomplete/TestIncompleteModules.py
lldb/test/API/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
lldb/test/API/lang/objc/modules-update/TestClangModulesUpdate.py
lldb/test/API/lang/objc/objc-struct-argument/TestObjCStructArgument.py
Index: lldb/test/API/lang/objc/objc-struct-argument/TestObjCStructArgument.py
===================================================================
--- lldb/test/API/lang/objc/objc-struct-argument/TestObjCStructArgument.py
+++ lldb/test/API/lang/objc/objc-struct-argument/TestObjCStructArgument.py
@@ -18,8 +18,9 @@
self.break_line = line_number(
self.main_source, '// Set breakpoint here.')
- @add_test_categories(['pyapi'])
- @skipIf(debug_info=no_match(["gmodules"]), oslist=['ios', 'watchos', 'tvos', 'bridgeos'], archs=['armv7', 'arm64']) # this test program only builds for ios with -gmodules
+ # this test program only builds for ios with -gmodules
+ @add_test_categories(['gmodules', 'pyapi'])
+ @skipIf(oslist=['ios', 'watchos', 'tvos', 'bridgeos'], archs=['armv7', 'arm64'])
def test_with_python_api(self):
"""Test passing structs to Objective-C methods."""
self.build()
Index: lldb/test/API/lang/objc/modules-update/TestClangModulesUpdate.py
===================================================================
--- lldb/test/API/lang/objc/modules-update/TestClangModulesUpdate.py
+++ lldb/test/API/lang/objc/modules-update/TestClangModulesUpdate.py
@@ -10,7 +10,7 @@
class TestClangModuleUpdate(TestBase):
- @skipIf(debug_info=no_match(["gmodules"]))
+ @add_test_categories(["gmodules"])
@skipIfDarwin # rdar://76540904
def test_expr(self):
with open(self.getBuildArtifact("module.modulemap"), "w") as f:
Index: lldb/test/API/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
===================================================================
--- lldb/test/API/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
+++ lldb/test/API/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
@@ -11,7 +11,8 @@
class ModulesInlineFunctionsTestCase(TestBase):
- @skipIf(macos_version=["<", "10.12"], debug_info=no_match(["gmodules"]))
+ @add_test_categories(["gmodules"])
+ @skipIf(macos_version=["<", "10.12"])
def test_expr(self):
self.build()
exe = self.getBuildArtifact("a.out")
Index: lldb/test/API/lang/objc/modules-incomplete/TestIncompleteModules.py
===================================================================
--- lldb/test/API/lang/objc/modules-incomplete/TestIncompleteModules.py
+++ lldb/test/API/lang/objc/modules-incomplete/TestIncompleteModules.py
@@ -15,7 +15,7 @@
# Find the line number to break inside main().
self.line = line_number('main.m', '// Set breakpoint 0 here.')
- @skipIf(debug_info=no_match(["gmodules"]))
+ @add_test_categories(["gmodules"])
def test_expr(self):
self.build()
exe = self.getBuildArtifact("a.out")
Index: lldb/test/API/lang/objc/modules-hash-mismatch/TestClangModulesHashMismatch.py
===================================================================
--- lldb/test/API/lang/objc/modules-hash-mismatch/TestClangModulesHashMismatch.py
+++ lldb/test/API/lang/objc/modules-hash-mismatch/TestClangModulesHashMismatch.py
@@ -10,7 +10,7 @@
class TestClangModuleHashMismatch(TestBase):
- @skipIf(debug_info=no_match(["gmodules"]))
+ @add_test_categories(["gmodules"])
def test_expr(self):
with open(self.getBuildArtifact("module.modulemap"), "w") as f:
f.write("""
Index: lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
===================================================================
--- lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
+++ lldb/test/API/lang/objc/modules-app-update/TestClangModulesAppUpdate.py
@@ -10,7 +10,7 @@
class TestClangModuleAppUpdate(TestBase):
- @skipIf(debug_info=no_match(["gmodules"]))
+ @add_test_categories(["gmodules"])
def test_rebuild_app_modules_untouched(self):
with open(self.getBuildArtifact("module.modulemap"), "w") as f:
f.write("""
Index: lldb/test/API/lang/cpp/gmodules/templates/TestGModules.py
===================================================================
--- lldb/test/API/lang/cpp/gmodules/templates/TestGModules.py
+++ lldb/test/API/lang/cpp/gmodules/templates/TestGModules.py
@@ -2,5 +2,5 @@
from lldbsuite.test.decorators import *
lldbinline.MakeInlineTest(__file__, globals(), [
- expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr36107",
- debug_info="gmodules")])
+ expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr36107"),
+ add_test_categories(["gmodules"])])
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134574.462622.patch
Type: text/x-patch
Size: 4553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220923/0149bf30/attachment-0001.bin>
More information about the lldb-commits
mailing list