File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
lldb/test/API/tools/lldb-dap/attach Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ def set_and_hit_breakpoint(self, continueToExit=True):
39
39
if continueToExit :
40
40
self .continue_to_exit ()
41
41
42
- @skipIfWindows
43
42
@skipIfNetBSD # Hangs on NetBSD as well
44
43
def test_by_pid (self ):
45
44
"""
@@ -56,7 +55,6 @@ def test_by_pid(self):
56
55
self .attach (pid = self .process .pid )
57
56
self .set_and_hit_breakpoint (continueToExit = True )
58
57
59
- @skipIfWindows
60
58
@skipIfNetBSD # Hangs on NetBSD as well
61
59
def test_by_name (self ):
62
60
"""
@@ -116,7 +114,6 @@ def test_by_name_waitFor(self):
116
114
self .attach (program = program , waitFor = True )
117
115
self .set_and_hit_breakpoint (continueToExit = True )
118
116
119
- @skipIfWindows
120
117
@skipIfDarwin
121
118
@skipIfNetBSD # Hangs on NetBSD as well
122
119
@skipIf (
@@ -207,7 +204,6 @@ def test_commands(self):
207
204
self .verify_commands ("exitCommands" , output , exitCommands )
208
205
self .verify_commands ("terminateCommands" , output , terminateCommands )
209
206
210
- @skipIfWindows
211
207
@skipIfDarwin
212
208
@skipIfNetBSD # Hangs on NetBSD as well
213
209
@skipIf (
Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
+ #ifdef _WIN32
3
+ #include <process.h>
4
+ #include <windows.h>
5
+ #else
2
6
#include <unistd.h>
7
+ #endif
3
8
4
9
int main (int argc , char const * argv []) {
5
10
lldb_enable_attach ();
@@ -15,6 +20,10 @@ int main(int argc, char const *argv[]) {
15
20
}
16
21
17
22
printf ("pid = %i\n" , getpid ());
23
+ #ifdef _WIN32
24
+ Sleep (10 * 1000 );
25
+ #else
18
26
sleep (10 );
27
+ #endif
19
28
return 0 ; // breakpoint 1
20
29
}
You can’t perform that action at this time.
0 commit comments