Piotr Caban : msvcp140: Skip _Reschedule_chore tests when CreateThreadpoolWork is not available.
Alexandre Julliard
julliard at winehq.org
Wed Oct 4 15:37:14 CDT 2017
Module: wine
Branch: master
Commit: e3af73716bb69269f818413333eae3322d1b7e60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e3af73716bb69269f818413333eae3322d1b7e60
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Oct 4 15:39:03 2017 +0200
msvcp140: Skip _Reschedule_chore tests when CreateThreadpoolWork is not available.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcp140/tests/msvcp140.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dlls/msvcp140/tests/msvcp140.c b/dlls/msvcp140/tests/msvcp140.c
index 8252865..9b1d7b1 100644
--- a/dlls/msvcp140/tests/msvcp140.c
+++ b/dlls/msvcp140/tests/msvcp140.c
@@ -487,6 +487,14 @@ static void test_chore(void)
wait = WaitForSingleObject(event, 500);
ok(wait == WAIT_OBJECT_0, "WaitForSingleObject returned %d\n", wait);
+ if(!GetProcAddress(GetModuleHandleA("kernel32"), "CreateThreadpoolWork"))
+ {
+ win_skip("_Reschedule_chore not supported\n");
+ p__Release_chore(&chore);
+ CloseHandle(event);
+ return;
+ }
+
old_chore = chore;
ret = p__Schedule_chore(&chore);
ok(!ret, "_Schedule_chore returned %d\n", ret);
@@ -505,6 +513,8 @@ static void test_chore(void)
ok(chore.callback == chore_callback, "chore.callback = %p, expected %p\n", chore.callback, chore_callback);
ok(chore.arg == event, "chore.arg = %p, expected %p\n", chore.arg, event);
p__Release_chore(&chore);
+
+ CloseHandle(event);
}
static void test_to_byte(void)
More information about the wine-cvs
mailing list