Skip to content

Commit d1b2957

Browse files
committed
[lldb][test] Fix beginning/end of file test failed on Windows
1 parent 3954e9d commit d1b2957

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed
Lines 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+
}
Lines changed: 3 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
@@ -12,14 +10,8 @@ b main
1210
r
1311
# CHECK: int main()
1412

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

2416
list -
2517
# CHECK: note: Reached beginning of the file, no more to page
@@ -28,4 +20,4 @@ list -
2820
# CHECK: note: Reached beginning of the file, no more to page
2921

3022
list
31-
# CHECK: int main()
23+
# CHECK: doNothing();

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

Lines 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)