From d1c5b6f66b03b1246ec27ab1cb917946d53f2036 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 25 Aug 2015 22:25:21 +0000 Subject: Fix a bunch of portability issues in test executables. llvm-svn: 245983 --- lldb/test/expression_command/expr-in-syscall/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lldb/test/expression_command/expr-in-syscall/main.cpp (limited to 'lldb/test/expression_command/expr-in-syscall/main.cpp') diff --git a/lldb/test/expression_command/expr-in-syscall/main.cpp b/lldb/test/expression_command/expr-in-syscall/main.cpp new file mode 100644 index 00000000000..743b69434d5 --- /dev/null +++ b/lldb/test/expression_command/expr-in-syscall/main.cpp @@ -0,0 +1,12 @@ +#include +#include + +volatile int release_flag = 0; + +int main(int argc, char const *argv[]) +{ + while (! release_flag) // Wait for debugger to attach + std::this_thread::sleep_for(std::chrono::seconds(3)); + + return 0; +} -- cgit v1.2.3