Fix expectedFailureLLGS to expect failure when host platform is not linux.
authorRobert Flack <flackr@gmail.com>
Thu, 9 Apr 2015 14:54:26 +0000 (14:54 +0000)
committerRobert Flack <flackr@gmail.com>
Thu, 9 Apr 2015 14:54:26 +0000 (14:54 +0000)
expectedFailureLLGS has an early return false if the platform is not linux
except it should be checking the target platform on which the server is
running for remote tests.

Test Plan:
Verify expected failure when running from mac to remote linux llgs:
TestBreakAfterJoin.py, TestCreateDuringStep.py, TestExitDuringBreak.py,
TestProcessLaunch.py, TestThreadStates.py

Differential Revision: http://reviews.llvm.org/D8869

llvm-svn: 234492

lldb/test/lldbtest.py

index 501aae9..ae8b9a5 100644 (file)
@@ -606,8 +606,8 @@ def expectedFailureWindows(bugnumber=None, compilers=None):
 
 def expectedFailureLLGS(bugnumber=None, compilers=None):
     def fn(self):
-        # llgs local is only an option on Linux systems
-        if 'linux' not in sys.platform:
+        # llgs local is only an option on Linux targets
+        if not self.platformIsLinux():
             return False
         self.runCmd('settings show platform.plugin.linux.use-llgs-for-local')
         return 'true' in self.res.GetOutput() and self.expectedCompiler(compilers)