From 6331c7d0bef8a0fccafe6333ba2004e50c752f19 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Fri, 19 Jun 2020 18:40:06 +0200 Subject: [PATCH] [lldb] Disable complex tests on Windows The tests fail to compile there: ``` complex/main.c:4:16: error: expected ';' at end of declaration float complex complex_float = -1.5f + -2.5f * I; ^ ; ``` --- lldb/test/API/lang/c/complex/TestComplexC99.py | 2 ++ lldb/test/API/lang/c/complex_int/TestComplexInt.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lldb/test/API/lang/c/complex/TestComplexC99.py b/lldb/test/API/lang/c/complex/TestComplexC99.py index c30fcbc5118b..93ad8f0ec081 100644 --- a/lldb/test/API/lang/c/complex/TestComplexC99.py +++ b/lldb/test/API/lang/c/complex/TestComplexC99.py @@ -8,6 +8,7 @@ class TestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @no_debug_info_test + @skipIfWindows def test(self): self.build() lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c")) @@ -21,6 +22,7 @@ class TestCase(TestBase): @no_debug_info_test # FIXME: LLDB fails to read the imaginary part of the number. @expectedFailureAll() + @skipIfWindows def test_long_double(self): self.build() lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c")) diff --git a/lldb/test/API/lang/c/complex_int/TestComplexInt.py b/lldb/test/API/lang/c/complex_int/TestComplexInt.py index 9bd0c3700def..86916ea8d5be 100644 --- a/lldb/test/API/lang/c/complex_int/TestComplexInt.py +++ b/lldb/test/API/lang/c/complex_int/TestComplexInt.py @@ -12,6 +12,7 @@ class TestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @no_debug_info_test + @skipIfWindows def test(self): self.build() lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c")) @@ -31,6 +32,7 @@ class TestCase(TestBase): self.expect_expr("complex_unsigned_long", result_type="_Complex long", result_value="1 + 2i") @no_debug_info_test + @skipIfWindows def test_long_long(self): self.build() lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.c"))