[Lldb-commits] [lldb] r349562 - [lit] Use the new build.py script in the lldb-mi tests

Stella Stamenova via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 18 14:54:17 PST 2018


Author: stella.stamenova
Date: Tue Dec 18 14:54:17 2018
New Revision: 349562

URL: http://llvm.org/viewvc/llvm-project?rev=349562&view=rev
Log:
[lit] Use the new build.py script in the lldb-mi tests

This allows the tests to pass on Windows as well

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

Modified: lldb/trunk/lit/Driver/Inputs/hello.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Driver/Inputs/hello.c?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/Driver/Inputs/hello.c (original)
+++ lldb/trunk/lit/Driver/Inputs/hello.c Tue Dec 18 14:54:17 2018
@@ -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;
 }

Modified: lldb/trunk/lit/Driver/TestConvenienceVariables.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Driver/TestConvenienceVariables.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/Driver/TestConvenienceVariables.test (original)
+++ lldb/trunk/lit/Driver/TestConvenienceVariables.test Tue Dec 18 14:54:17 2018
@@ -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 = TestConve
 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()

Modified: lldb/trunk/lit/tools/lldb-mi/breakpoint/break-insert.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/breakpoint/break-insert.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/breakpoint/break-insert.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/breakpoint/break-insert.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/data/data-info-line.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/data/data-info-line.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/data/data-info-line.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/data/data-info-line.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-continue.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-continue.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-continue.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-continue.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-finish.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-finish.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-finish.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-finish.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-interrupt.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-interrupt.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-interrupt.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-interrupt.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-next-instruction.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-next-instruction.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-next-instruction.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-next-instruction.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-next.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-next.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-next.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-next.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-step-instruction.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-step-instruction.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-step-instruction.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-step-instruction.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/exec/exec-step.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/exec/exec-step.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/exec/exec-step.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/exec/exec-step.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/lit/tools/lldb-mi/symbol/symbol-list-lines.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/tools/lldb-mi/symbol/symbol-list-lines.test?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/lit/tools/lldb-mi/symbol/symbol-list-lines.test (original)
+++ lldb/trunk/lit/tools/lldb-mi/symbol/symbol-list-lines.test Tue Dec 18 14:54:17 2018
@@ -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.

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py?rev=349562&r1=349561&r2=349562&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py Tue Dec 18 14:54:17 2018
@@ -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()




More information about the lldb-commits mailing list