blob: 2d8f74c69bd946aeb65fb122221007f7ccd89409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
Version = 1.0
Section = threading
Function = CreateSemaphoreW / ReleaseSemaphore
Name = Positive Test for CreateSemaphoreW and ReleaseSemaphore
TYPE = DEFAULT
EXE1 = createsemaphore
Description
= Test attributes of CreateSemaphoreW and ReleaseSemaphore.
= Insure for CreateSemaphore that lInitialCount and lMaximumCount
= constraints are respected. Validate that CreateSemaphore rejects
= conditions where, initial count and / or maximum count are negative
= and conditions where the initial count is greater than the maximum
= count. For ReleaseSemaphore validate that lpPreviousCount gets set
= to the previous semaphore count and lpPreviousCount can be NULL.
= Also establish ReleaseSemaphore fails when called in a semaphore
= with count equal to lMaximumCount.
|