Skip to content

Commit 71501c9

Browse files
authored
Merge pull request #4197 from apple/πŸ’/5.7/af2ea183f5e3+257f98466222+66b829ac7b68
πŸ’/5.7/af2ea183f5e3+257f98466222+66b829ac7b68
2 parents 0c45532 + f76f6f5 commit 71501c9

File tree

11 files changed

+17
-5
lines changed

11 files changed

+17
-5
lines changed

β€Žlldb/test/API/commands/expression/import-std-module/missing-module-sources/TestStdModuleSourcesMissing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class TestCase(TestBase):
1818
# test configurations where libc++ is actually supposed to be tested.
1919
@add_test_categories(["libc++"])
2020
@skipIf(compiler=no_match("clang"))
21+
@skipIfRemote
2122
def test(self):
2223
# The path to our temporary target root that contains the temporary
2324
# module sources.

β€Žlldb/test/API/commands/platform/basic/TestPlatformCommand.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def test_shell_timeout(self):
9595
"error: timed out waiting for shell command to complete"])
9696

9797
@no_debug_info_test
98+
@skipIfRemote
9899
def test_host_shell_interpreter(self):
99100
""" Test the host platform shell with a different interpreter """
100101
self.build()

β€Žlldb/test/API/commands/platform/basic/TestPlatformPython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def test_available_platform_list(self):
8282

8383
@add_test_categories(['pyapi'])
8484
@no_debug_info_test
85+
@skipIfRemote
8586
def test_shell_interpreter(self):
8687
""" Test a shell with a custom interpreter """
8788
platform = self.dbg.GetSelectedPlatform()

β€Žlldb/test/API/commands/platform/sdk/TestPlatformSDK.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def port_not_available(self):
4343
@skipUnlessDarwin
4444
@expectedFailureIfFn(no_debugserver)
4545
@expectedFailureIfFn(port_not_available)
46+
@skipIfRemote
4647
def test_macos_sdk(self):
4748
self.build()
4849

β€Žlldb/test/API/commands/settings/quoting/TestQuoting.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ def expect_args(self, args_in, args_out):
5050
to stdout. Compare the stdout with args_out."""
5151

5252
filename = SettingsCommandTestCase.output_file_name
53+
outfile = self.getBuildArtifact(filename)
5354

5455
if lldb.remote_platform:
55-
outfile = lldb.remote_platform.GetWorkingDirectory() + filename
56+
outfile_arg = os.path.join(lldb.remote_platform.GetWorkingDirectory(), filename)
5657
else:
57-
outfile = self.getBuildArtifact(filename)
58+
outfile_arg = outfile
5859

59-
self.runCmd("process launch -- %s %s" % (outfile, args_in))
60+
self.runCmd("process launch -- %s %s" % (outfile_arg, args_in))
6061

6162
if lldb.remote_platform:
62-
src_file_spec = lldb.SBFileSpec(outfile, False)
63+
src_file_spec = lldb.SBFileSpec(outfile_arg, False)
6364
dst_file_spec = lldb.SBFileSpec(outfile, True)
6465
lldb.remote_platform.Get(src_file_spec, dst_file_spec)
6566

6667
with open(outfile, 'r') as f:
6768
output = f.read()
6869

6970
self.RemoveTempFile(outfile)
70-
7171
self.assertEqual(output, args_out)

β€Žlldb/test/API/lang/objc/conflicting-definition/Test/Test.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import <Foundation/Foundation.h>
2+
13
#import "Test.h"
24

35
@implementation Test

β€Žlldb/test/API/lang/objc/conflicting-definition/TestExt/TestExt.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#import <Foundation/Foundation.h>
2+
13
#import "TestExt.h"
24
#import "Foo.h"
35

β€Žlldb/test/API/macosx/profile_vrs_detach/TestDetachVrsProfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class TestDetachVrsProfile(TestBase):
2323

2424
@skipUnlessDarwin
2525
@skipIfOutOfTreeDebugserver
26+
@skipIfRemote
2627
def test_profile_and_detach(self):
2728
"""There can be many tests in a test case - describe this test here."""
2829
self.build()

β€Žlldb/test/API/python_api/process/TestProcessAPI.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ def test_get_num_supported_hardware_watchpoints(self):
320320
print("Number of supported hardware watchpoints: %d" % num)
321321

322322
@no_debug_info_test
323+
@skipIfRemote
323324
def test_get_process_info(self):
324325
"""Test SBProcess::GetProcessInfo() API with a locally launched process."""
325326
self.build()

β€Žlldb/test/API/python_api/sbmodule/TestSBModule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def tearDown(self):
2121
os.kill(self.background_pid, signal.SIGKILL)
2222

2323
@skipUnlessDarwin
24+
@skipIfRemote
2425
def test_module_is_file_backed(self):
2526
"""Test the SBModule::IsFileBacked() method"""
2627
self.build()

β€Žlldb/test/API/python_api/target/TestTargetAPI.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ def resolve_symbol_context_with_address(self):
460460
self.assertTrue(desc1 and desc2 and desc1 == desc2,
461461
"The two addresses should resolve to the same symbol")
462462

463+
@skipIfRemote
463464
def test_default_arch(self):
464465
""" Test the other two target create methods using LLDB_ARCH_DEFAULT. """
465466
self.build()

0 commit comments

Comments
Β (0)