summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-08-24 21:40:29 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-08-24 21:40:29 +0000
commitb17ac35f207ad0804abd44167c27010e8d362cee (patch)
tree0fd2b29d8ddf691e93d4f9ad5771c09de1f8f01e /lldb/packages/Python/lldbsuite/test
parenta8c7371d16032ea158e67d14c6adde1759871d1d (diff)
downloadbcm5719-llvm-b17ac35f207ad0804abd44167c27010e8d362cee.tar.gz
bcm5719-llvm-b17ac35f207ad0804abd44167c27010e8d362cee.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/darwin_log.py9
1 files changed, 9 insertions, 0 deletions
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'
OpenPOWER on IntegriCloud