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; }
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; }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits