[PATCH] D46440: [lit, lldbsuite] Fixes for several tests LLDB tests for Python 3 or Windows

Stella Stamenova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 4 14:58:05 PDT 2018


stella.stamenova updated this revision to Diff 145303.

Repository:
  rL LLVM

https://reviews.llvm.org/D46440

Files:
  packages/Python/lldbsuite/test/python_api/hello_world/main.c


Index: packages/Python/lldbsuite/test/python_api/hello_world/main.c
===================================================================
--- packages/Python/lldbsuite/test/python_api/hello_world/main.c
+++ packages/Python/lldbsuite/test/python_api/hello_world/main.c
@@ -1,7 +1,7 @@
 #include <stdio.h>
 #ifdef _MSC_VER
 #include <windows.h>
-#define sleep Sleep
+#define sleep(x) Sleep((x) * 1000)
 #else
 #include <unistd.h>
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46440.145303.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180504/68260a41/attachment.bin>


More information about the llvm-commits mailing list