forked from OSchip/llvm-project
[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:
parent
aa77513bb9
commit
f5b5325a10
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue