| 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: test.c |
| 8 | ** |
| 9 | ** Purpose: This test is an example of the basic structure of a PAL test |
| 10 | ** suite test case. |
| 11 | ** |
| 12 | ** |
| 13 | **==========================================================================*/ |
| 14 | |
| 15 | #include <palsuite.h> |
| 16 | |
| 17 | int __cdecl main(int argc, char **argv) |
| 18 | { |
| 19 | /* Initialize the PAL. |
| 20 | */ |
| 21 | if(0 != PAL_Initialize(argc, argv)) |
| 22 | { |
| 23 | return FAIL; |
| 24 | } |
| 25 | |
| 26 | Trace("\nTest #1...\n" ); |
| 27 | |
| 28 | #ifdef WIN32 |
| 29 | Trace("\nWe are testing under Win32 environment.\n" ); |
| 30 | #else |
| 31 | Trace("\nWe are testing under Non-Win32 environment.\n" ); |
| 32 | #endif |
| 33 | |
| 34 | Trace("\nThis test has passed.\n" ); |
| 35 | |
| 36 | /* Shutdown the PAL. |
| 37 | */ |
| 38 | PAL_Terminate(); |
| 39 | |
| 40 | return PASS; |
| 41 | } |
| 42 | |