From 79e4a4b213f99d7f7f14ee02818a3b77830449c3 Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Wed, 13 May 2015 18:23:10 +0000 Subject: [PATCH] Check the host platform to determine logging channel to test in TestRegisters.py Checks the host platform to determine logging channel to test in TestRegisters.py as the logging runs host side. Test Plan: ./dotest.py $DOTEST_OPTS -v -t -p TestRegisters.py This passes mac -> linux as it's logging the correct channel. Differential Revision: http://reviews.llvm.org/D9755 llvm-svn: 237271 --- lldb/test/functionalities/register/TestRegisters.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py index 47c9df7..b78a254 100644 --- a/lldb/test/functionalities/register/TestRegisters.py +++ b/lldb/test/functionalities/register/TestRegisters.py @@ -88,14 +88,16 @@ class RegisterCommandsTestCase(TestBase): # platform specific logging of the specified category def log_enable(self, category): + # This intentionally checks the host platform rather than the target + # platform as logging is host side. self.platform = "" - if self.platformIsDarwin(): + if sys.platform.startswith("darwin"): self.platform = "" # TODO: add support for "log enable darwin registers" - if self.getPlatform() == "freebsd": + if sys.platform.startswith("freebsd"): self.platform = "freebsd" - if self.getPlatform() == "linux": + if sys.platform.startswith("linux"): self.platform = "linux" if self.platform != "": -- 2.7.4