From c685f6c17f430fb7814bba8fd2e89bbb2dc64ec5 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 13 Jul 2018 22:31:59 +0000 Subject: [PATCH] Make these tests c++ tests so they can be skipped on systems that don't support those tests. llvm-svn: 337058 --- .../libcxx/bitset/TestDataFormatterLibcxxBitset.py | 1 + .../libcxx/vector/TestDataFormatterLibcxxVector.py | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/bitset/TestDataFormatterLibcxxBitset.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/bitset/TestDataFormatterLibcxxBitset.py index 6e1a9d8..4fa115e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/bitset/TestDataFormatterLibcxxBitset.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/bitset/TestDataFormatterLibcxxBitset.py @@ -45,6 +45,7 @@ class TestDataFormatterLibcxxBitset(TestBase): self.check("small", 13) self.check("large", 200) + @add_test_categories(["libc++"]) def test_ptr_and_ref(self): """Test that ref and ptr to std::bitset is displayed correctly""" self.build() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py index 8c52d81..aeb1098 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/vector/TestDataFormatterLibcxxVector.py @@ -17,10 +17,6 @@ class LibcxxVectorDataFormatterTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) - @add_test_categories(["libc++"]) - @skipIf(debug_info="gmodules", - bugnumber="https://bugs.llvm.org/show_bug.cgi?id=36048") - def check_numbers(self, var_name): self.expect("frame variable " + var_name, substrs=[var_name + ' = size=7', @@ -54,6 +50,9 @@ class LibcxxVectorDataFormatterTestCase(TestBase): self.expect("frame variable " + var_name + "[3]", substrs=['1234']) + @add_test_categories(["libc++"]) + @skipIf(debug_info="gmodules", + bugnumber="https://bugs.llvm.org/show_bug.cgi?id=36048") def test_with_run_command(self): """Test that that file and class static variables display correctly.""" self.build() @@ -180,6 +179,9 @@ class LibcxxVectorDataFormatterTestCase(TestBase): self.expect("frame variable strings", substrs=['vector has 0 items']) + @add_test_categories(["libc++"]) + @skipIf(debug_info="gmodules", + bugnumber="https://bugs.llvm.org/show_bug.cgi?id=36048") def test_ref_and_ptr(self): """Test that that file and class static variables display correctly.""" self.build() -- 2.7.4