Author: tfiala Date: Wed Aug 24 16:40:29 2016 New Revision: 279672 URL: http://llvm.org/viewvc/llvm-project?rev=279672&view=rev Log: 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. Modified: lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py Modified: lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py?rev=279672&r1=279671&r2=279672&view=diff ============================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py (original) +++ lldb/trunk/packages/Python/lldbsuite/test/darwin_log.py Wed Aug 24 16:40:29 2016 @@ -296,6 +296,15 @@ class DarwinLogEventBasedTestBase(lldbte # 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' _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits