From: Robert Flack Date: Thu, 9 Apr 2015 14:54:26 +0000 (+0000) Subject: Fix expectedFailureLLGS to expect failure when host platform is not linux. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4db5462e3370b604e551ec6bb81441a254d77a4;p=platform%2Fupstream%2Fllvm.git Fix expectedFailureLLGS to expect failure when host platform is not linux. 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 --- diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 501aae9..ae8b9a5 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -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)