mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
Adding complete test kit for EngCreateSemaphore, EngAcquireSemaphore, EngDeleteSemaphore, EngReleaseSemaphore
I think it testing all case it can now, and also split up some test to EngDeleteSemaphore and EngReleaseSemaphore and EngAcquireSemaphore, that was in EngCreateSemaphore svn path=/trunk/; revision=33816
This commit is contained in:
parent
c3f50e79c8
commit
ba14ded010
5 changed files with 158 additions and 15 deletions
|
@ -26,21 +26,6 @@ Test_EngCreateSemaphore(PTESTINFO pti)
|
|||
|
||||
EngDeleteSemaphore(hsem);
|
||||
|
||||
RTEST (lpcrit->DebugInfo != NULL);
|
||||
RTEST (lpcrit->LockCount > 0);
|
||||
RTEST (lpcrit->RecursionCount == 0);
|
||||
RTEST (lpcrit->OwningThread == 0);
|
||||
RTEST (lpcrit->LockSemaphore == 0);
|
||||
RTEST (lpcrit->SpinCount == 0);
|
||||
|
||||
ASSERT(lpcrit->DebugInfo != NULL);
|
||||
// my (magnus olsen) value I getting back in vista RTEST (lpcrit->DebugInfo->Type == 0xA478);
|
||||
RTEST (lpcrit->DebugInfo->Type != 0);
|
||||
RTEST (lpcrit->DebugInfo->CreatorBackTraceIndex != 0);
|
||||
RTEST (lpcrit->DebugInfo->EntryCount != 0);
|
||||
// my (magnus olsen) value I getting back RTEST in vista (lpcrit->DebugInfo->ContentionCount == 0x20000);
|
||||
RTEST (lpcrit->DebugInfo->ContentionCount != 0);
|
||||
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue