diff options
author | Zachary Turner <zturner@google.com> | 2015-08-25 22:25:21 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-08-25 22:25:21 +0000 |
commit | d1c5b6f66b03b1246ec27ab1cb917946d53f2036 (patch) | |
tree | 337e8c353884b23a491a474934546bf7ddea1bce /lldb/test/expression_command/expr-in-syscall | |
parent | 289287060b7076935b544ba60cc6b5b5091da7c8 (diff) | |
download | bcm5719-llvm-d1c5b6f66b03b1246ec27ab1cb917946d53f2036.tar.gz bcm5719-llvm-d1c5b6f66b03b1246ec27ab1cb917946d53f2036.zip |
Fix a bunch of portability issues in test executables.
llvm-svn: 245983
Diffstat (limited to 'lldb/test/expression_command/expr-in-syscall')
-rw-r--r-- | lldb/test/expression_command/expr-in-syscall/Makefile | 2 | ||||
-rw-r--r-- | lldb/test/expression_command/expr-in-syscall/main.cpp (renamed from lldb/test/expression_command/expr-in-syscall/main.c) | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lldb/test/expression_command/expr-in-syscall/Makefile b/lldb/test/expression_command/expr-in-syscall/Makefile index 0d70f259501..8a7102e347a 100644 --- a/lldb/test/expression_command/expr-in-syscall/Makefile +++ b/lldb/test/expression_command/expr-in-syscall/Makefile @@ -1,5 +1,5 @@ LEVEL = ../../make -C_SOURCES := main.c +CXX_SOURCES := main.cpp include $(LEVEL)/Makefile.rules diff --git a/lldb/test/expression_command/expr-in-syscall/main.c b/lldb/test/expression_command/expr-in-syscall/main.cpp index d101825b7b2..743b69434d5 100644 --- a/lldb/test/expression_command/expr-in-syscall/main.c +++ b/lldb/test/expression_command/expr-in-syscall/main.cpp @@ -1,11 +1,12 @@ -#include <unistd.h> +#include <chrono> +#include <thread> volatile int release_flag = 0; int main(int argc, char const *argv[]) { while (! release_flag) // Wait for debugger to attach - sleep(3); + std::this_thread::sleep_for(std::chrono::seconds(3)); return 0; } |