Skip to content

Commit

Permalink
Fix breakpoint_set_restart test for Windows
Browse files Browse the repository at this point in the history
When run with the multiprocess test runner, the getchar() trick doesn't work, so ninja check-lldb would fail on this test, but running the test directly worked fine.

Differential Revision: http://reviews.llvm.org/D19035

llvm-svn: 266145
  • Loading branch information
amccarth-google committed Apr 12, 2016
1 parent 551af44 commit 0a38553
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0a38553

Please sign in to comment.