[Lldb-commits] [PATCH] D53208: [lldbsuite] Fix the mac version decorator to work on non-mac platforms
Stella Stamenova via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 12 15:58:45 PDT 2018
stella.stamenova updated this revision to Diff 169509.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D53208
Files:
packages/Python/lldbsuite/test/decorators.py
Index: packages/Python/lldbsuite/test/decorators.py
===================================================================
--- packages/Python/lldbsuite/test/decorators.py
+++ packages/Python/lldbsuite/test/decorators.py
@@ -192,10 +192,10 @@
py_version is None) or _check_expected_version(
py_version[0], py_version[1], sys.version_info)
skip_for_macos_version = (macos_version is None) or (
- _check_expected_version(
+ (platform.mac_ver()[0] != "") and (_check_expected_version(
macos_version[0],
macos_version[1],
- platform.mac_ver()[0]))
+ platform.mac_ver()[0])))
# For the test to be skipped, all specified (e.g. not None) parameters must be True.
# An unspecified parameter means "any", so those are marked skip by default. And we skip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53208.169509.patch
Type: text/x-patch
Size: 884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181012/8886e6e1/attachment.bin>
More information about the lldb-commits
mailing list