From 8380d12a6e7feed4198cfb797d17c07acdfa8a6b Mon Sep 17 00:00:00 2001 From: Stella Stamenova Date: Mon, 7 May 2018 21:57:00 +0000 Subject: [lit, lldbsuite] Fixes for several tests LLDB tests for Python 3 or Windows Summary: In decorators.py, when opening streams, open them in text mode. In Py3, if they are not opened in text mode, the data is also expected to be binary, but we always use text data. In TestLinuxCore, skip the tests that are not applicable on Windows In the python api main.c, update the code to be compilable on Windows Reviewers: asmith, zturner Reviewed By: zturner Subscribers: zturner Differential Revision: https://reviews.llvm.org/D46440 llvm-svn: 331686 --- lldb/packages/Python/lldbsuite/test/python_api/hello_world/main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/python_api') diff --git a/lldb/packages/Python/lldbsuite/test/python_api/hello_world/main.c b/lldb/packages/Python/lldbsuite/test/python_api/hello_world/main.c index 001e9c01e6e..32b0446517c 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/hello_world/main.c +++ b/lldb/packages/Python/lldbsuite/test/python_api/hello_world/main.c @@ -1,5 +1,11 @@ #include +#ifdef _MSC_VER +#include +#define sleep(x) Sleep((x) * 1000) +#else #include +#endif + int main(int argc, char const *argv[]) { lldb_enable_attach(); -- cgit v1.2.3