[Lldb-commits] [PATCH] D19035: Fix breakpoint_set_restart test for Windows

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 12 15:50:37 PDT 2016


This revision was automatically updated to reflect the committed changes.
amccarth marked an inline comment as done.
Closed by commit rL266145: Fix breakpoint_set_restart test for Windows (authored by amccarth).

Changed prior to commit:
  http://reviews.llvm.org/D19035?vs=53472&id=53482#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19035

Files:
  lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp

Index: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp
===================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp
@@ -7,12 +7,18 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <iostream>
+#include <chrono>
 #include <stdio.h>
+#include <thread>
+
 
 int main(int argc, char const *argv[])
 {
-    getchar();
+    static bool done = false;
+    while (!done)
+    {
+      std::this_thread::sleep_for(std::chrono::milliseconds{100});
+    }
     printf("Set a breakpoint here.\n");
     return 0;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19035.53482.patch
Type: text/x-patch
Size: 825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160412/d080ed7a/attachment.bin>


More information about the lldb-commits mailing list