summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/threading/ExitProcess/test1/ExitProcess.c
blob: 2b089a0b833a32c066203dacedc681d065bc6122 (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
// 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: exitprocess/test1/exitprocess.c
**
** Purpose: Test to ensure ExitProcess returns the argument given
**          to it. 
**
**
**=========================================================*/

#include <palsuite.h>

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

{
    
    if(0 != (PAL_Initialize(argc, argv)))
    {
	return ( FAIL );
    }
 
    ExitProcess(PASS);

    Fail ("ExitProcess(0) failed to exit.\n  Test Failed.\n");

    return ( FAIL);

}