{Get,Set}ThreadPriorityBoost are stubs on Win98.
This commit is contained in:
parent
389df3db5c
commit
2a56437f72
|
@ -370,7 +370,8 @@ VOID test_thread_priority()
|
||||||
HANDLE curthread,access_thread;
|
HANDLE curthread,access_thread;
|
||||||
DWORD curthreadId,exitCode;
|
DWORD curthreadId,exitCode;
|
||||||
int min_priority=-2,max_priority=2;
|
int min_priority=-2,max_priority=2;
|
||||||
int i,error;
|
BOOL disabled;
|
||||||
|
int i;
|
||||||
|
|
||||||
curthread=GetCurrentThread();
|
curthread=GetCurrentThread();
|
||||||
curthreadId=GetCurrentThreadId();
|
curthreadId=GetCurrentThreadId();
|
||||||
|
@ -398,7 +399,7 @@ VOID test_thread_priority()
|
||||||
ok(pSetThreadPriorityBoost(access_thread,1)==0,
|
ok(pSetThreadPriorityBoost(access_thread,1)==0,
|
||||||
"SetThreadPriorityBoost did not obey access restrictions");
|
"SetThreadPriorityBoost did not obey access restrictions");
|
||||||
if (pGetThreadPriorityBoost)
|
if (pGetThreadPriorityBoost)
|
||||||
ok(pGetThreadPriorityBoost(access_thread,&error)==0,
|
ok(pGetThreadPriorityBoost(access_thread,&disabled)==0,
|
||||||
"GetThreadPriorityBoost did not obey access restrictions");
|
"GetThreadPriorityBoost did not obey access restrictions");
|
||||||
ok(GetExitCodeThread(access_thread,&exitCode)==0,
|
ok(GetExitCodeThread(access_thread,&exitCode)==0,
|
||||||
"GetExitCodeThread did not obey access restrictions");
|
"GetExitCodeThread did not obey access restrictions");
|
||||||
|
@ -426,15 +427,25 @@ VOID test_thread_priority()
|
||||||
|
|
||||||
/* Check thread priority boost */
|
/* Check thread priority boost */
|
||||||
if (pGetThreadPriorityBoost && pSetThreadPriorityBoost) {
|
if (pGetThreadPriorityBoost && pSetThreadPriorityBoost) {
|
||||||
|
BOOL rc;
|
||||||
todo_wine {
|
todo_wine {
|
||||||
ok(pSetThreadPriorityBoost(curthread,1)!=0,
|
SetLastError(0);
|
||||||
"SetThreadPriorityBoost Failed");
|
rc=pGetThreadPriorityBoost(curthread,&disabled);
|
||||||
ok(pGetThreadPriorityBoost(curthread,&error)!=0 && error==1,
|
if (rc!=0 || GetLastError()!=ERROR_CALL_NOT_IMPLEMENTED) {
|
||||||
"GetThreadPriorityBoost Failed");
|
ok(rc!=0,"error=%ld",GetLastError());
|
||||||
ok(pSetThreadPriorityBoost(curthread,0)!=0,
|
|
||||||
"SetThreadPriorityBoost Failed");
|
ok(pSetThreadPriorityBoost(curthread,1)!=0,
|
||||||
ok(pGetThreadPriorityBoost(curthread,&error)!=0 && error==0,
|
"error=%ld",GetLastError());
|
||||||
"GetThreadPriorityBoost Failed");
|
rc=pGetThreadPriorityBoost(curthread,&disabled);
|
||||||
|
ok(rc!=0 && disabled==1,
|
||||||
|
"rc=%d error=%ld disabled=%d",rc,GetLastError(),disabled);
|
||||||
|
|
||||||
|
ok(pSetThreadPriorityBoost(curthread,0)!=0,
|
||||||
|
"error=%ld",GetLastError());
|
||||||
|
rc=pGetThreadPriorityBoost(curthread,&disabled);
|
||||||
|
ok(rc!=0 && disabled==0,
|
||||||
|
"rc=%d error=%ld disabled=%d",rc,GetLastError(),disabled);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue