From b17ac35f207ad0804abd44167c27010e8d362cee Mon Sep 17 00:00:00 2001 From: Todd Fiala Date: Wed, 24 Aug 2016 21:40:29 +0000 Subject: fix darwin_log test errors on macOS < 10.12 The newer event-based tests I added neglected to do the macOS 10.12 check in the setup. This caused earlier macOS test suite runs to attempt to compile code that doesn't exist. llvm-svn: 279672 --- lldb/packages/Python/lldbsuite/test/darwin_log.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/darwin_log.py') diff --git a/lldb/packages/Python/lldbsuite/test/darwin_log.py b/lldb/packages/Python/lldbsuite/test/darwin_log.py index 103341bc03f..d603880391b 100644 --- a/lldb/packages/Python/lldbsuite/test/darwin_log.py +++ b/lldb/packages/Python/lldbsuite/test/darwin_log.py @@ -296,6 +296,15 @@ class DarwinLogEventBasedTestBase(lldbtest.TestBase): # Call super's setUp(). super(DarwinLogEventBasedTestBase, self).setUp() + # Until other systems support this, exit + # early if we're not macOS version 10.12 + # or greater. + version = platform.mac_ver()[0].split('.') + if ((int(version[0]) == 10) and (int(version[1]) < 12) or + (int(version[0]) < 10)): + self.skipTest("DarwinLog tests currently require macOS 10.12+") + return + # Source filename. self.source = 'main.c' -- cgit v1.2.3