From f4db5462e3370b604e551ec6bb81441a254d77a4 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Thu, 9 Apr 2015 14:54:26 +0000 Subject: [PATCH] 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 --- lldb/test/lldbtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.7.4