summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOProcessTest/ChildProcess.cpp
blob: 91c24d87bbccaff548c229b50783d932911b53ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

/*============================================================
**
** Source: ChildProcess.c 
**
** Purpose: Dummy Process which does some work on which the Main Test case waits
**			
** 

**
**=========================================================*/



#include <palsuite.h>

int __cdecl main(int argc, char **argv)
{

//Declare local variables
int i =0;

	

//Initialize PAL 
if(0 != (PAL_Initialize(argc, argv)))
    {
        return ( FAIL ); 
    }

//Do some work
for (i=0; i<100000; i++);

Trace("Counter Value was incremented to %d \n ",i); 

PAL_Terminate();
return ( PASS );

}