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: Test to ensure GetExitCodeProcess returns the right
10** value. All this program does is return a predefined value.
11**
12** Dependencies: none
13**
14
15**
16**=========================================================*/
17
18#include <pal.h>
19#include "myexitcode.h"
20
21int __cdecl main( int argc, char **argv )
22{
23 int i;
24
25 // simulate some activity
26 for( i=0; i<10000; i++ )
27 ;
28
29 // return the predefined exit code
30 return TEST_EXIT_CODE;
31}
32