Andrew Nguyen : kernel32/tests: Correctly skip when Unicode thread functions are not available.
Alexandre Julliard
julliard at winehq.org
Mon May 18 08:13:19 CDT 2009
Module: wine
Branch: master
Commit: b0abafe70fd7a5f031ac4780dc315b13ff65df49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0abafe70fd7a5f031ac4780dc315b13ff65df49
Author: Andrew Nguyen <arethusa26 at gmail.com>
Date: Mon May 18 04:24:45 2009 -0500
kernel32/tests: Correctly skip when Unicode thread functions are not available.
---
dlls/kernel32/tests/thread.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c
index c1d65c1..2c699b4 100644
--- a/dlls/kernel32/tests/thread.c
+++ b/dlls/kernel32/tests/thread.c
@@ -693,7 +693,10 @@ static VOID test_thread_priority(void)
SetLastError(0xdeadbeef);
rc=pGetThreadPriorityBoost(curthread,&disabled);
if (rc==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
- return; /* WinME */
+ {
+ win_skip("GetThreadPriorityBoost is not implemented on WinME\n");
+ return;
+ }
todo_wine
ok(rc!=0,"error=%d\n",GetLastError());
@@ -755,7 +758,10 @@ static VOID test_GetThreadTimes(void)
/* GetThreadTimes should set all of the parameters passed to it */
error=GetThreadTimes(thread,&creationTime,&exitTime,
&kernelTime,&userTime);
- if (error!=0 || GetLastError()!=ERROR_CALL_NOT_IMPLEMENTED) {
+
+ if (error == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+ win_skip("GetThreadTimes is not implemented\n");
+ else {
ok(error!=0,"GetThreadTimes failed\n");
ok(creationTime.dwLowDateTime!=99 || creationTime.dwHighDateTime!=99,
"creationTime was invalid\n");
More information about the wine-cvs
mailing list