Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30318b2

Browse filesBrowse files
committed
[lldb][test] Fix beginning/end of file test failed on Windows
1 parent 3954e9d commit 30318b2
Copy full SHA for 30318b2

File tree

Expand file treeCollapse file tree

3 files changed

+20
-20
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+20
-20
lines changed
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <stdio.h>
2+
void doNothing() { printf("doNothing\n"); }
3+
4+
void doSomethiing() {
5+
doNothing();
6+
doNothing();
7+
doNothing();
8+
}
9+
10+
int main() {
11+
doSomethiing();
12+
doNothing();
13+
doSomethiing();
14+
return 0;
15+
}
+4-11Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Source uses unistd.h.
2-
# UNSUPPORTED: system-windows
3-
# RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
1+
# RUN: %clang_host -g -O0 %S/Inputs/cross_platform.c -o %t.out
42
# RUN: %lldb %t.out -b -s %s 2>&1 | FileCheck %s
53

64
list
@@ -9,17 +7,12 @@ list
97
b main
108
# CHECK: Breakpoint 1:
119

10+
1211
r
1312
# CHECK: int main()
1413

15-
list
16-
# CHECK: if (child_pid == 0)
17-
1814
list -
19-
# CHECK: int main()
20-
21-
list -10
22-
# CHECK: #include <assert.h>
15+
# CHECK: #include <stdio.h>
2316

2417
list -
2518
# CHECK: note: Reached beginning of the file, no more to page
@@ -28,4 +21,4 @@ list -
2821
# CHECK: note: Reached beginning of the file, no more to page
2922

3023
list
31-
# CHECK: int main()
24+
# CHECK: doNothing();

‎lldb/test/Shell/Commands/command-list-reach-end-of-file.test

Copy file name to clipboardExpand all lines: lldb/test/Shell/Commands/command-list-reach-end-of-file.test
+1-9Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Source uses unistd.h.
2-
# UNSUPPORTED: system-windows
3-
# RUN: %clang_host -g -O0 %S/Inputs/sigchld.c -o %t.out
1+
# RUN: %clang_host -g -O0 %S/Inputs/cross_platform.c -o %t.out
42
# RUN: %lldb %t.out -b -s %s 2>&1 | FileCheck %s
53

64
list
@@ -12,12 +10,6 @@ b main
1210
r
1311
# CHECK: int main()
1412

15-
list
16-
# CHECK: if (child_pid == 0)
17-
18-
list
19-
# CHECK: printf("signo = %d\n", SIGCHLD);
20-
2113
list
2214
# CHECK: return 0;
2315

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.