From de7cd9229e8b16c7ef1dbff624078b4a50df5774 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 21 Oct 2010 21:58:02 +0000 Subject: [PATCH] Mark these test methods to be eligible for running only under the 'darwin' platform. llvm-svn: 117071 --- lldb/test/types/Makefile | 4 +++- lldb/test/types/TestFloatTypes.py | 3 +++ lldb/test/types/TestFloatTypesExpr.py | 3 +++ lldb/test/types/TestIntegerTypes.py | 11 +++++++++++ lldb/test/types/TestIntegerTypesExpr.py | 11 +++++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/lldb/test/types/Makefile b/lldb/test/types/Makefile index 759601d21672..c1b4cb32561d 100644 --- a/lldb/test/types/Makefile +++ b/lldb/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/lldb/test/types/TestFloatTypes.py b/lldb/test/types/TestFloatTypes.py index 025c8bc8d126..a532c88fdd64 100644 --- a/lldb/test/types/TestFloatTypes.py +++ b/lldb/test/types/TestFloatTypes.py @@ -5,11 +5,13 @@ Test that variables of floating point types are displayed correctly. 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 @@ class FloatTypesTestCase(AbstractBase.GenericTester): 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/lldb/test/types/TestFloatTypesExpr.py b/lldb/test/types/TestFloatTypesExpr.py index 6c2ffe92a5b8..e761acf117f4 100644 --- a/lldb/test/types/TestFloatTypesExpr.py +++ b/lldb/test/types/TestFloatTypesExpr.py @@ -5,6 +5,7 @@ Test that variable expressions of floating point types are evaluated correctly. import AbstractBase import unittest2 import lldb +import sys class FloatTypesTestCase(AbstractBase.GenericTester): @@ -13,6 +14,7 @@ class FloatTypesTestCase(AbstractBase.GenericTester): # 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 @@ class FloatTypesTestCase(AbstractBase.GenericTester): 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/lldb/test/types/TestIntegerTypes.py b/lldb/test/types/TestIntegerTypes.py index a7ac3fcb18fe..358838bf8073 100644 --- a/lldb/test/types/TestIntegerTypes.py +++ b/lldb/test/types/TestIntegerTypes.py @@ -5,11 +5,13 @@ Test that variables of integer basic types are displayed correctly. 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): # 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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/lldb/test/types/TestIntegerTypesExpr.py b/lldb/test/types/TestIntegerTypesExpr.py index 57036724bd33..6abc6b7e3ab7 100644 --- a/lldb/test/types/TestIntegerTypesExpr.py +++ b/lldb/test/types/TestIntegerTypesExpr.py @@ -5,11 +5,13 @@ Test that variable expressions of integer basic types are evaluated correctly. 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): # 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 @@ class IntegerTypesTestCase(AbstractBase.GenericTester): 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'}