From e1d7448127d2f1eed7bae1141b365bb61bd25447 Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Tue, 17 Jul 2007 14:51:14 -0700 Subject: [PATCH] kernel32: Added SetThreadPriority tests, try 2 --- dlls/kernel32/tests/thread.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c index bbda00e..e6df213 100644 --- a/dlls/kernel32/tests/thread.c +++ b/dlls/kernel32/tests/thread.c @@ -588,6 +588,21 @@ #endif "GetThreadPriority Failed\n"); ok(SetThreadPriority(curthread,0)!=0,"SetThreadPriority Failed\n"); +/* Check that the thread priority is not changed if SetThreadPriority + is called with a value outside of the max/min range */ + SetThreadPriority(curthread,min_priority); + SetThreadPriority(curthread,min_priority-1); + todo_wine + ok(GetThreadPriority(curthread)==min_priority, + "GetThreadPriority didn't return min_priority\n"); + + SetThreadPriority(curthread,max_priority); + SetThreadPriority(curthread,max_priority+1); + todo_wine + ok(GetThreadPriority(curthread)==max_priority, + "GetThreadPriority didn't return max_priority\n"); + + /* Check thread priority boost */ if (!pGetThreadPriorityBoost || !pSetThreadPriorityBoost) return; /* Win9x */ -- 1.4.1