-int puts(const char*);
+#include <stdio.h>
+
int main(int argc, char **argv) {
- puts("Hello World\n");
+ printf("Hello World\n");
return 0;
}
-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)
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()
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
-# 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.
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()
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()