summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/class_static/TestStaticVariables.py
diff options
context:
space:
mode:
authorRobert Flack <flackr@gmail.com>2015-04-01 13:26:16 +0000
committerRobert Flack <flackr@gmail.com>2015-04-01 13:26:16 +0000
commit8f4c4d535b5e38be49245ca28ab4b65b02b0c093 (patch)
tree3847fe673f6f082f0386cdb6be9dd969f1f9fb8d /lldb/test/lang/cpp/class_static/TestStaticVariables.py
parent3a610ebf1e7c44309880b2bd7ec9325d3f1db0bd (diff)
downloadbcm5719-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/lang/cpp/class_static/TestStaticVariables.py')
-rw-r--r--lldb/test/lang/cpp/class_static/TestStaticVariables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
index c2d2024ef8e..d5d0bf1402e 100644
--- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py
+++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py
@@ -73,7 +73,7 @@ class StaticVariableTestCase(TestBase):
# On Mac OS X, gcc 4.2 emits the wrong debug info for A::g_points.
# A::g_points is an array of two elements.
- if sys.platform.startswith("darwin") or sys.platform.startswith("linux"):
+ if self.getPlatform() == "darwin" or self.getPlatform() == "linux":
self.expect("target variable A::g_points[1].x", VARIABLES_DISPLAYED_CORRECTLY,
startstr = "(int) A::g_points[1].x = 11")
OpenPOWER on IntegriCloud