[Lldb-commits] [lldb] r117071 - in /lldb/trunk/test/types: Makefile TestFloatTypes.py TestFloatTypesExpr.py TestIntegerTypes.py TestIntegerTypesExpr.py

Johnny Chen johnny.chen at apple.com
Thu Oct 21 14:58:03 PDT 2010


Author: johnny
Date: Thu Oct 21 16:58:02 2010
New Revision: 117071

URL: http://llvm.org/viewvc/llvm-project?rev=117071&view=rev
Log:
Mark these test methods to be eligible for running only under the 'darwin' platform.

Modified:
    lldb/trunk/test/types/Makefile
    lldb/trunk/test/types/TestFloatTypes.py
    lldb/trunk/test/types/TestFloatTypesExpr.py
    lldb/trunk/test/types/TestIntegerTypes.py
    lldb/trunk/test/types/TestIntegerTypesExpr.py

Modified: lldb/trunk/test/types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/Makefile?rev=117071&r1=117070&r2=117071&view=diff
==============================================================================
--- lldb/trunk/test/types/Makefile (original)
+++ lldb/trunk/test/types/Makefile Thu Oct 21 16:58:02 2010
@@ -1,5 +1,7 @@
 LEVEL = ../make
 
-#CXX_SOURCES := int.cpp
+# Example:
+#
+# CXX_SOURCES := int.cpp
 
 include $(LEVEL)/Makefile.rules

Modified: lldb/trunk/test/types/TestFloatTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestFloatTypes.py?rev=117071&r1=117070&r2=117071&view=diff
==============================================================================
--- lldb/trunk/test/types/TestFloatTypes.py (original)
+++ lldb/trunk/test/types/TestFloatTypes.py Thu Oct 21 16:58:02 2010
@@ -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'}

Modified: lldb/trunk/test/types/TestFloatTypesExpr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestFloatTypesExpr.py?rev=117071&r1=117070&r2=117071&view=diff
==============================================================================
--- lldb/trunk/test/types/TestFloatTypesExpr.py (original)
+++ lldb/trunk/test/types/TestFloatTypesExpr.py Thu Oct 21 16:58:02 2010
@@ -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'}

Modified: lldb/trunk/test/types/TestIntegerTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestIntegerTypes.py?rev=117071&r1=117070&r2=117071&view=diff
==============================================================================
--- lldb/trunk/test/types/TestIntegerTypes.py (original)
+++ lldb/trunk/test/types/TestIntegerTypes.py Thu Oct 21 16:58:02 2010
@@ -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'}

Modified: lldb/trunk/test/types/TestIntegerTypesExpr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestIntegerTypesExpr.py?rev=117071&r1=117070&r2=117071&view=diff
==============================================================================
--- lldb/trunk/test/types/TestIntegerTypesExpr.py (original)
+++ lldb/trunk/test/types/TestIntegerTypesExpr.py Thu Oct 21 16:58:02 2010
@@ -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'}





More information about the lldb-commits mailing list