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):
3939 if continueToExit :
4040 self .continue_to_exit ()
4141
42- @skipIfWindows
4342 @skipIfNetBSD # Hangs on NetBSD as well
4443 def test_by_pid (self ):
4544 """
@@ -56,7 +55,6 @@ def test_by_pid(self):
5655 self .attach (pid = self .process .pid )
5756 self .set_and_hit_breakpoint (continueToExit = True )
5857
59- @skipIfWindows
6058 @skipIfNetBSD # Hangs on NetBSD as well
6159 def test_by_name (self ):
6260 """
@@ -116,7 +114,6 @@ def test_by_name_waitFor(self):
116114 self .attach (program = program , waitFor = True )
117115 self .set_and_hit_breakpoint (continueToExit = True )
118116
119- @skipIfWindows
120117 @skipIfDarwin
121118 @skipIfNetBSD # Hangs on NetBSD as well
122119 @skipIf (
@@ -207,7 +204,6 @@ def test_commands(self):
207204 self .verify_commands ("exitCommands" , output , exitCommands )
208205 self .verify_commands ("terminateCommands" , output , terminateCommands )
209206
210- @skipIfWindows
211207 @skipIfDarwin
212208 @skipIfNetBSD # Hangs on NetBSD as well
213209 @skipIf (
Original file line number Diff line number Diff line change 11#include <stdio.h>
2+ #ifdef _WIN32
3+ #include <process.h>
4+ #include <windows.h>
5+ #else
26#include <unistd.h>
7+ #endif
38
49int main (int argc , char const * argv []) {
510 lldb_enable_attach ();
@@ -15,6 +20,10 @@ int main(int argc, char const *argv[]) {
1520 }
1621
1722 printf ("pid = %i\n" , getpid ());
23+ #ifdef _WIN32
24+ Sleep (10 * 1000 );
25+ #else
1826 sleep (10 );
27+ #endif
1928 return 0 ; // breakpoint 1
2029}
You can’t perform that action at this time.
0 commit comments