Mark these test methods to be eligible for running only under the 'darwin' platform.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@117071 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/types/Makefile b/test/types/Makefile
index 759601d..c1b4cb3 100644
--- a/test/types/Makefile
+++ b/test/types/Makefile
@@ -1,5 +1,7 @@
 LEVEL = ../make
 
-#CXX_SOURCES := int.cpp
+# Example:
+#
+# CXX_SOURCES := int.cpp
 
 include $(LEVEL)/Makefile.rules
diff --git a/test/types/TestFloatTypes.py b/test/types/TestFloatTypes.py
index 025c8bc..a532c88 100644
--- a/test/types/TestFloatTypes.py
+++ b/test/types/TestFloatTypes.py
@@ -5,11 +5,13 @@
 import AbstractBase
 import unittest2
 import lldb
+import sys
 
 class FloatTypesTestCase(AbstractBase.GenericTester):
 
     mydir = "types"
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_float_types_with_dsym(self):
         """Test that float-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'float.cpp'}
@@ -24,6 +26,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.float_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_double_type_with_dsym(self):
         """Test that double-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'double.cpp'}
diff --git a/test/types/TestFloatTypesExpr.py b/test/types/TestFloatTypesExpr.py
index 6c2ffe9..e761acf 100644
--- a/test/types/TestFloatTypesExpr.py
+++ b/test/types/TestFloatTypesExpr.py
@@ -5,6 +5,7 @@
 import AbstractBase
 import unittest2
 import lldb
+import sys
 
 class FloatTypesTestCase(AbstractBase.GenericTester):
 
@@ -13,6 +14,7 @@
     # rdar://problem/8493023
     # test/types failures for Test*TypesExpr.py: element offset computed wrong and sign error?
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_float_types_with_dsym(self):
         """Test that float-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'float.cpp'}
@@ -27,6 +29,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.float_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_double_type_with_dsym(self):
         """Test that double-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'double.cpp'}
diff --git a/test/types/TestIntegerTypes.py b/test/types/TestIntegerTypes.py
index a7ac3fc..358838b 100644
--- a/test/types/TestIntegerTypes.py
+++ b/test/types/TestIntegerTypes.py
@@ -5,11 +5,13 @@
 import AbstractBase
 import unittest2
 import lldb
+import sys
 
 class IntegerTypesTestCase(AbstractBase.GenericTester):
 
     mydir = "types"
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_char_type_with_dsym(self):
         """Test that char-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'char.cpp'}
@@ -24,6 +26,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.char_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_char_type_with_dsym(self):
         """Test that 'unsigned_char'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'unsigned_char.cpp'}
@@ -38,6 +41,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_char_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_short_type_with_dsym(self):
         """Test that short-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'short.cpp'}
@@ -52,6 +56,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.short_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_short_type_with_dsym(self):
         """Test that 'unsigned_short'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'unsigned_short.cpp'}
@@ -66,6 +71,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_short_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_int_type_with_dsym(self):
         """Test that int-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'int.cpp'}
@@ -80,6 +86,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.int_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_int_type_with_dsym(self):
         """Test that 'unsigned_int'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'unsigned_int.cpp'}
@@ -94,6 +101,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_int_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_long_type_with_dsym(self):
         """Test that long-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'long.cpp'}
@@ -108,6 +116,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.long_type()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_long_type_with_dsym(self):
         """Test that 'unsigned long'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'unsigned_long.cpp'}
@@ -126,6 +135,7 @@
     # test suite failure for types dir -- "long long" and "unsigned long long"
 
     @unittest2.expectedFailure
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_long_long_type_with_dsym(self):
         """Test that 'long long'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'long_long.cpp'}
@@ -142,6 +152,7 @@
         self.long_long_type()
 
     @unittest2.expectedFailure
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_long_long_type_with_dsym(self):
         """Test that 'unsigned long long'-type variables are displayed correctly."""
         d = {'CXX_SOURCES': 'unsigned_long_long.cpp'}
diff --git a/test/types/TestIntegerTypesExpr.py b/test/types/TestIntegerTypesExpr.py
index 5703672..6abc6b7 100644
--- a/test/types/TestIntegerTypesExpr.py
+++ b/test/types/TestIntegerTypesExpr.py
@@ -5,11 +5,13 @@
 import AbstractBase
 import unittest2
 import lldb
+import sys
 
 class IntegerTypesTestCase(AbstractBase.GenericTester):
 
     mydir = "types"
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_char_type_with_dsym(self):
         """Test that char-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'char.cpp'}
@@ -24,6 +26,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.char_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_char_type_with_dsym(self):
         """Test that 'unsigned_char'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'unsigned_char.cpp'}
@@ -38,6 +41,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_char_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_short_type_with_dsym(self):
         """Test that short-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'short.cpp'}
@@ -52,6 +56,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.short_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_short_type_with_dsym(self):
         """Test that 'unsigned_short'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'unsigned_short.cpp'}
@@ -66,6 +71,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_short_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_int_type_with_dsym(self):
         """Test that int-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'int.cpp'}
@@ -80,6 +86,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.int_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_int_type_with_dsym(self):
         """Test that 'unsigned_int'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'unsigned_int.cpp'}
@@ -94,6 +101,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.unsigned_int_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_long_type_with_dsym(self):
         """Test that long-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'long.cpp'}
@@ -108,6 +116,7 @@
         self.setTearDownCleanup(dictionary=d)
         self.long_type_expr()
 
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_long_type_with_dsym(self):
         """Test that 'unsigned long'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'unsigned_long.cpp'}
@@ -126,6 +135,7 @@
     # test suite failure for types dir -- "long long" and "unsigned long long"
 
     @unittest2.expectedFailure
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_long_long_type_with_dsym(self):
         """Test that 'long long'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'long_long.cpp'}
@@ -142,6 +152,7 @@
         self.long_long_type_expr()
 
     @unittest2.expectedFailure
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_unsigned_long_long_type_with_dsym(self):
         """Test that 'unsigned long long'-type variable expressions are evaluated correctly."""
         d = {'CXX_SOURCES': 'unsigned_long_long.cpp'}