1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | /*============================================================ |
6 | ** |
7 | ** Source: ChildProcess.c |
8 | ** |
9 | ** Purpose: Dummy Process which does some work on which the Main Test case waits |
10 | ** |
11 | ** |
12 | |
13 | ** |
14 | **=========================================================*/ |
15 | |
16 | |
17 | |
18 | #include <palsuite.h> |
19 | |
20 | int __cdecl main(int argc, char **argv) |
21 | { |
22 | |
23 | //Declare local variables |
24 | int i =0; |
25 | |
26 | |
27 | |
28 | //Initialize PAL |
29 | if(0 != (PAL_Initialize(argc, argv))) |
30 | { |
31 | return ( FAIL ); |
32 | } |
33 | |
34 | //Do some work |
35 | for (i=0; i<100000; i++); |
36 | |
37 | Trace("Counter Value was incremented to %d \n " ,i); |
38 | |
39 | PAL_Terminate(); |
40 | return ( PASS ); |
41 | |
42 | } |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 | |
51 | |