[Lldb-commits] [lldb] 6331c7d - [lldb] Disable complex tests on Windows

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 19 09:42:18 PDT 2020


Author: Raphael Isemann
Date: 2020-06-19T18:40:08+02:00
New Revision: 6331c7d0bef8a0fccafe6333ba2004e50c752f19

URL: https://github.com/llvm/llvm-project/commit/6331c7d0bef8a0fccafe6333ba2004e50c752f19
DIFF: https://github.com/llvm/llvm-project/commit/6331c7d0bef8a0fccafe6333ba2004e50c752f19.diff

LOG: [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;
               ^
               ;
```

Added: 
    

Modified: 
    lldb/test/API/lang/c/complex/TestComplexC99.py
    lldb/test/API/lang/c/complex_int/TestComplexInt.py

Removed: 
    


################################################################################
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 @@ def test(self):
     @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 @@ def test(self):
             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"))


        


More information about the lldb-commits mailing list