[lit] Use the new build.py script in the lldb-mi tests
authorStella Stamenova <stilis@microsoft.com>
Tue, 18 Dec 2018 22:54:17 +0000 (22:54 +0000)
committerStella Stamenova <stilis@microsoft.com>
Tue, 18 Dec 2018 22:54:17 +0000 (22:54 +0000)
This allows the tests to pass on Windows as well

llvm-svn: 349562

13 files changed:
lldb/lit/Driver/Inputs/hello.c
lldb/lit/Driver/TestConvenienceVariables.test
lldb/lit/tools/lldb-mi/breakpoint/break-insert.test
lldb/lit/tools/lldb-mi/data/data-info-line.test
lldb/lit/tools/lldb-mi/exec/exec-continue.test
lldb/lit/tools/lldb-mi/exec/exec-finish.test
lldb/lit/tools/lldb-mi/exec/exec-interrupt.test
lldb/lit/tools/lldb-mi/exec/exec-next-instruction.test
lldb/lit/tools/lldb-mi/exec/exec-next.test
lldb/lit/tools/lldb-mi/exec/exec-step-instruction.test
lldb/lit/tools/lldb-mi/exec/exec-step.test
lldb/lit/tools/lldb-mi/symbol/symbol-list-lines.test
lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py

index fb9be9a12675fe4033ce8c2ad4fc9d9ee7880621..60d6f7587fdc95899f155f6d666f4236ac24a278 100644 (file)
@@ -1,5 +1,6 @@
-int puts(const char*);
+#include <stdio.h>
+
 int main(int argc, char **argv) {
-  puts("Hello World\n");
+  printf("Hello World\n");
   return 0;
 }
index ea0931fdf78893bee38d47b4e3e6ee267e90a355..eac57af3a3df0dd1e901d5360ae1e56abeb8b5e3 100644 (file)
@@ -1,4 +1,4 @@
-RUN: %clang %p/Inputs/hello.c -g -o %t
+RUN: %build %p/Inputs/hello.c -o %t
 RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s
 
 script print(lldb.debugger)
@@ -15,7 +15,7 @@ CHECK-SAME:       executable = TestConvenienceVariables.test
 CHECK: script print(lldb.thread.GetStopDescription(100))
 CHECK: breakpoint 1.1
 CHECK: script lldb.frame.GetLineEntry().GetLine()
-CHECK: 3
+CHECK: 4
 CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
 CHECK: hello.c
 CHECK: script lldb.frame.GetFunctionName()
index 74ce04e4a1b7632a01424b22f59f55759526bf62..ef50bf530077c656e0667dd53a83a4d816d4244d 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o a.exe %p/inputs/break-insert.c -g
+# RUN: %build %p/inputs/break-insert.c --nodefaultlib -o a.exe
 # RUN: %lldbmi < %s | FileCheck %s
 
 # Test that a breakpoint can be inserted before creating a target.
index a42305d19a2b67bc510f0e8f8005a858430a017c..287e833ab9ef0e8dd51f51c5be5ff08c427c68d8 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/data-info-line.c -g
+# RUN: %build %p/inputs/data-info-line.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -data-info-line command.
index e9aba78bd670a008bbf2b7f72f3a8f31fff96dd2..d51393e5c7164cc90a5a24a29d0b9e0f871756f6 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-continue command.
index 07ca95102d1269a9ffa7a1c5a63029eb57890446..b2a50c5267fd57bf29f2e2950bdb1c0dc08f8604 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-finish command.
index 43b5aa9be3fa039a8da8e994c298a3a79a628992..2c063236d7f5c70b41cc337165490fb3ed9b2bba 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-interrupt command.
index f012a5daceb4d28f2c413135e385ad9aa461a837..abd4e526375f1683bc643ad81f671175a7ffb83e 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-next-instruction command.
index 5e06ac887f8c892b1ac71f5dd7e98851dbf68503..87d9d44bb582d056b5ca1592e4a526eb273fd76a 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-next command.
index ba95d687b171c9ff744be4336d00248b0b9941b9..0613fb5c793425527604b51fc442494a4fe5787e 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-step-instruction command.
index 2a69d449a308e40882d9865188431223b1feb2d7..976afb33bcd4147a6a9165e1b407f3a5f638fdc3 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c -g
+# RUN: %build %p/inputs/main.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -exec-step command.
index 4b9202cd463e97c56c9fe5eff015ab91b8381acd..792f283db1bb20ef67c034751548c55583662205 100644 (file)
@@ -1,7 +1,4 @@
-# XFAIL: system-windows
-# -> llvm.org/pr24452
-#
-# RUN: %clang -o %t %p/inputs/main.c %p/inputs/symbol-list-lines.c %p/inputs/list-lines-helper.c -g
+# RUN: %build %p/inputs/main.c %p/inputs/symbol-list-lines.c %p/inputs/list-lines-helper.c --nodefaultlib -o %t
 # RUN: %lldbmi %t < %s | FileCheck %s
 
 # Test lldb-mi -symbol-list-lines command.
index 9ebe61b65e36fb738e6ff661c4f38f08bb672e17..8143fa96433f44bbc4300533abc2ef672b520341 100644 (file)
@@ -25,7 +25,6 @@ class BreakpointCommandTestCase(TestBase):
         self.build()
         self.breakpoint_command_sequence()
 
-    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528")
     def test_script_parameters(self):
         """Test a sequence of breakpoint command add, list, and delete."""
         self.build()
@@ -45,7 +44,6 @@ class BreakpointCommandTestCase(TestBase):
         self.addTearDownHook(
             lambda: self.runCmd("settings clear auto-confirm"))
 
-    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24528")
     def test_delete_all_breakpoints(self):
         """Test that deleting all breakpoints works."""
         self.build()