OSDN Git Service

[lldb] Disable complex tests on Windows
authorRaphael Isemann <teemperor@gmail.com>
Fri, 19 Jun 2020 16:40:06 +0000 (18:40 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 19 Jun 2020 16:40:08 +0000 (18:40 +0200)
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
lldb/test/API/lang/c/complex_int/TestComplexInt.py

index c30fcbc..93ad8f0 100644 (file)
@@ -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"))
index 9bd0c37..86916ea 100644 (file)
@@ -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"))