From e49f53ea51ae8089989ff565d39bb1495e48e27c Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 16 Jun 2008 13:20:06 +0000 Subject: [PATCH] comment out some tests that fail on win XP, until someone fixes them svn path=/trunk/; revision=33992 --- .../apitests/gdi32api/tests/EngAcquireSemaphore.c | 2 +- .../apitests/gdi32api/tests/EngDeleteSemaphore.c | 4 ++-- .../apitests/gdi32api/tests/EngReleaseSemaphore.c | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rostests/apitests/gdi32api/tests/EngAcquireSemaphore.c b/rostests/apitests/gdi32api/tests/EngAcquireSemaphore.c index 3c9fcf559e5..3648c278137 100644 --- a/rostests/apitests/gdi32api/tests/EngAcquireSemaphore.c +++ b/rostests/apitests/gdi32api/tests/EngAcquireSemaphore.c @@ -13,7 +13,7 @@ Test_EngAcquireSemaphore(PTESTINFO pti) /* real data test */ EngAcquireSemaphore(hsem); - RTEST (lpcrit->LockCount == -2); +// RTEST (lpcrit->LockCount == -2); doesn't work on XP RTEST (lpcrit->RecursionCount == 1); RTEST (lpcrit->OwningThread != 0); RTEST (lpcrit->LockSemaphore == 0); diff --git a/rostests/apitests/gdi32api/tests/EngDeleteSemaphore.c b/rostests/apitests/gdi32api/tests/EngDeleteSemaphore.c index 5d85ace8e67..a8c35dc84f4 100644 --- a/rostests/apitests/gdi32api/tests/EngDeleteSemaphore.c +++ b/rostests/apitests/gdi32api/tests/EngDeleteSemaphore.c @@ -12,13 +12,13 @@ Test_EngDeleteSemaphore(PTESTINFO pti) lpcrit = (PRTL_CRITICAL_SECTION) hsem; EngDeleteSemaphore(hsem); - RTEST (lpcrit->LockCount > 0); +// RTEST (lpcrit->LockCount > 0); doesn't work on XP RTEST (lpcrit->RecursionCount == 0); RTEST (lpcrit->OwningThread == 0); RTEST (lpcrit->LockSemaphore == 0); RTEST (lpcrit->SpinCount == 0); - ASSERT(lpcrit->DebugInfo != NULL); +// ASSERT(lpcrit->DebugInfo != NULL); doesn't work on XP RTEST (lpcrit->DebugInfo->Type != 0); RTEST (lpcrit->DebugInfo->CreatorBackTraceIndex != 0); RTEST (lpcrit->DebugInfo->EntryCount != 0); diff --git a/rostests/apitests/gdi32api/tests/EngReleaseSemaphore.c b/rostests/apitests/gdi32api/tests/EngReleaseSemaphore.c index fa25bc2d3d9..f92c10603cd 100644 --- a/rostests/apitests/gdi32api/tests/EngReleaseSemaphore.c +++ b/rostests/apitests/gdi32api/tests/EngReleaseSemaphore.c @@ -30,17 +30,17 @@ Test_EngReleaseSemaphore(PTESTINFO pti) /* try with deleted Semaphore */ EngReleaseSemaphore(hsem); - RTEST (lpcrit->LockCount > 0); +// RTEST (lpcrit->LockCount > 0); RTEST (lpcrit->RecursionCount != 0); RTEST (lpcrit->OwningThread == 0); RTEST (lpcrit->LockSemaphore == 0); RTEST (lpcrit->SpinCount == 0); - ASSERT(lpcrit->DebugInfo != NULL); - RTEST (lpcrit->DebugInfo->Type != 0); - RTEST (lpcrit->DebugInfo->CreatorBackTraceIndex != 0); - RTEST (lpcrit->DebugInfo->EntryCount != 0); - RTEST (lpcrit->DebugInfo->ContentionCount != 0); +// ASSERT(lpcrit->DebugInfo != NULL); +// RTEST (lpcrit->DebugInfo->Type != 0); +// RTEST (lpcrit->DebugInfo->CreatorBackTraceIndex != 0); +// RTEST (lpcrit->DebugInfo->EntryCount != 0); +// RTEST (lpcrit->DebugInfo->ContentionCount != 0); /* NULL pointer test */ // Note NULL pointer test crash in Vista */