diff options
| author | Robert Flack <flackr@gmail.com> | 2015-04-01 13:26:16 +0000 |
|---|---|---|
| committer | Robert Flack <flackr@gmail.com> | 2015-04-01 13:26:16 +0000 |
| commit | 8f4c4d535b5e38be49245ca28ab4b65b02b0c093 (patch) | |
| tree | 3847fe673f6f082f0386cdb6be9dd969f1f9fb8d /lldb/test/functionalities/load_unload/TestLoadUnload.py | |
| parent | 3a610ebf1e7c44309880b2bd7ec9325d3f1db0bd (diff) | |
| download | bcm5719-llvm-8f4c4d535b5e38be49245ca28ab4b65b02b0c093.tar.gz bcm5719-llvm-8f4c4d535b5e38be49245ca28ab4b65b02b0c093.zip | |
Update sys.platform switched behavior in tests to use self.getPlatform (remote target platform)
Uses target platform when determining which platform specific behavior to use
or expect in tests. TestHelp.py was unchanged because this is asserting
behavior of the local lldb binary.
Test Plan:
Run tests on different remote os. Several previously failing tests now pass:
TestArrayTypes.py
TestInferiorChanged.py
TestInferiorCrashing.py
TestIvarProtocols.py
TestProcessIO.py
TestPublicAPIHeaders.py
TestRecursiveInferior.py
Differential Revision: http://reviews.llvm.org/D8747
llvm-svn: 233805
Diffstat (limited to 'lldb/test/functionalities/load_unload/TestLoadUnload.py')
| -rw-r--r-- | lldb/test/functionalities/load_unload/TestLoadUnload.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py index e8f5ed7accb..8facb488dd9 100644 --- a/lldb/test/functionalities/load_unload/TestLoadUnload.py +++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py @@ -24,7 +24,7 @@ class LoadUnloadTestCase(TestBase): '// Set break point at this line for test_lldb_process_load_and_unload_commands().') self.line_d_function = line_number('d.c', '// Find this line number within d_dunction().') - if not sys.platform.startswith("darwin"): + if self.getPlatform() != "darwin": if "LD_LIBRARY_PATH" in os.environ: self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.environ["LD_LIBRARY_PATH"] + ":" + os.getcwd()) else: @@ -38,7 +38,7 @@ class LoadUnloadTestCase(TestBase): # Invoke the default build rule. self.buildDefault() - if sys.platform.startswith("darwin"): + if self.getPlatform() == "darwin": dylibName = 'libloadunload_d.dylib' else: dylibName = 'libloadunload_d.so' @@ -93,7 +93,7 @@ class LoadUnloadTestCase(TestBase): exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - if sys.platform.startswith("darwin"): + if self.getPlatform() == "darwin": dylibName = 'libloadunload_d.dylib' dsymName = 'libloadunload_d.dylib.dSYM' else: @@ -112,7 +112,7 @@ class LoadUnloadTestCase(TestBase): # we pick up the hidden dylib. env_cmd_string = "settings set target.env-vars " + self.dylibPath + "=" + new_dir - if not sys.platform.startswith("darwin"): + if self.getPlatform() != "darwin": env_cmd_string += ":" + os.getcwd() if self.TraceOn(): @@ -164,7 +164,7 @@ class LoadUnloadTestCase(TestBase): error=True, matching=False, patterns = ["1 match found .* %s" % self.mydir]) - if sys.platform.startswith("darwin"): + if self.getPlatform() == "darwin": dylibName = 'libloadunload_a.dylib' else: dylibName = 'libloadunload_a.so' |

