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

llvm-svn: 117071
This commit is contained in:
Johnny Chen 2010-10-21 21:58:02 +00:00
parent 8512270dbc
commit de7cd9229e
5 changed files with 31 additions and 1 deletions

View File

@ -1,5 +1,7 @@
LEVEL = ../make
#CXX_SOURCES := int.cpp
# Example:
#
# CXX_SOURCES := int.cpp
include $(LEVEL)/Makefile.rules

View File

@ -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'}

View File

@ -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'}

View File

@ -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'}

View File

@ -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'}