From c7826524acda6a9c8816261d5c48b94dc92935ed Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 13 Aug 2014 17:44:53 +0000 Subject: Get test executables compiling on Windows. Many of the test executables use pthreads directly. This isn't portable on Windows, so this patch converts these test to use C++11 threads and mutexes. Since Windows' implementation of std::thread classes throw and catch from header files, this patch also disables exceptions when compiling with clang on Windows. Reviewed by: Todd Fiala, Ed Maste Differential Revision: http://reviews.llvm.org/D4816 llvm-svn: 215562 --- lldb/test/python_api/signals/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lldb/test/python_api/signals/main.cpp') diff --git a/lldb/test/python_api/signals/main.cpp b/lldb/test/python_api/signals/main.cpp index ddd2ffe5fb2..81924f435a1 100644 --- a/lldb/test/python_api/signals/main.cpp +++ b/lldb/test/python_api/signals/main.cpp @@ -8,13 +8,21 @@ //===----------------------------------------------------------------------===// #include #include +#if defined(_WIN32) +#include +#else #include #include +#endif // This simple program is to test the lldb Python API related to process. int main (int argc, char const *argv[]) { +#if defined(_WIN32) + ::ExitProcess(1); +#else kill(getpid(), SIGINT); // Set break point at this line and setup signal ignores. +#endif return 0; } -- cgit v1.2.3