Fix breakpoint_set_restart test for Windows

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
This commit is contained in:
Adrian McCarthy 2016-04-12 22:45:03 +00:00
parent 551af44e31
commit 0a385532dd
1 changed files with 8 additions and 2 deletions

View File

@ -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;
}