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

This allows the tests to pass on Windows as well

llvm-svn: 349562
This commit is contained in:
Stella Stamenova 2018-12-18 22:54:17 +00:00
parent aa77513bb9
commit f5b5325a10
13 changed files with 15 additions and 46 deletions

View 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;
}

View 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()

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.

View 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()