| 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: exitprocess/test1/exitprocess.c |
| 8 | ** |
| 9 | ** Purpose: Test to ensure ExitProcess returns the argument given |
| 10 | ** to it. |
| 11 | ** |
| 12 | ** |
| 13 | **=========================================================*/ |
| 14 | |
| 15 | #include <palsuite.h> |
| 16 | |
| 17 | int __cdecl main( int argc, char **argv ) |
| 18 | |
| 19 | { |
| 20 | |
| 21 | if(0 != (PAL_Initialize(argc, argv))) |
| 22 | { |
| 23 | return ( FAIL ); |
| 24 | } |
| 25 | |
| 26 | ExitProcess(PASS); |
| 27 | |
| 28 | Fail ("ExitProcess(0) failed to exit.\n Test Failed.\n" ); |
| 29 | |
| 30 | return ( FAIL); |
| 31 | |
| 32 | } |
| 33 | |