diff options
Diffstat (limited to 'src/pal/tests/palsuite/locale_info/GetCPInfo/test3/test3.cpp')
-rw-r--r-- | src/pal/tests/palsuite/locale_info/GetCPInfo/test3/test3.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/pal/tests/palsuite/locale_info/GetCPInfo/test3/test3.cpp b/src/pal/tests/palsuite/locale_info/GetCPInfo/test3/test3.cpp new file mode 100644 index 0000000000..aa9df935b8 --- /dev/null +++ b/src/pal/tests/palsuite/locale_info/GetCPInfo/test3/test3.cpp @@ -0,0 +1,41 @@ +// 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: test3.c +** +** Purpose: Test that passes CP_ACP to GetCPInfo, verifying the results. +** +** +**==========================================================================*/ + +#include <palsuite.h> + +/* Currently only one CodePage "CP_ACP" is supported by the PAL */ + +int __cdecl main(int argc, char *argv[]) +{ + CPINFO cpinfo; + + /* Initialize the PAL. + */ + if (PAL_Initialize(argc, argv)) + { + return FAIL; + } + + /* Test GetCPInfo with CP_ACP. + */ + if (!GetCPInfo(CP_ACP, &cpinfo)) + { + Fail("GetCPInfo() unable to get info for code page %d!\n", CP_ACP); + } + + /* Terminate the PAL. + */ + PAL_Terminate(); + return PASS; +} + |