Commit graph

66 commits

Author SHA1 Message Date
Ratin Gao 4c8a2a8815
[KERNEL32][KERNEL32_APITEST] Implement user-mode UEFI / Firmware API (#5149)
- Implement firmware environment variable read/write APIs
- Add, fix and improve related definitions and declarations
- Add kernel32:UEFIFirmware apitest

CORE-11954
2023-09-14 22:14:07 +03:00
Timo Kreuzer 7497f028f4 [KERNEL32_APITEST] Improve InitOnce test 2023-09-10 14:58:54 +03:00
Timo Kreuzer 6286475d71 [KERNEL32_APITEST] Fix stack corruption in InitOnce test on x64 2023-09-10 14:58:54 +03:00
Ratin Gao f491d7cc99
[KERNEL32][RTL] Implement One-Time initialization API and improve RTL support (#5046)
* [KERNEL32][RTL] Implement One-Time initialization API and improve RTL support
2023-09-06 15:40:53 -07:00
Stanislav Motylkov 017004a0ac [KERNEL32_APITEST] FindFiles: Add tests for *Ex functions
Shows that `lpSearchFilter` pointer is being ignored on Windows.
This is for @RatinCN's PR #5592.
2023-08-27 00:48:26 +03:00
Timo Kreuzer 0181560848 [KERNEL32_APITEST] Make tests pass on Windows 2003 2023-04-17 00:41:31 +03:00
Hermès Bélusca-Maïto ba516ff0f5
[KERNEL32_APITESTS] Add a test showing thread locale/LangID sync with console (#4301)
This test shows how a console program's thread's language ID changes,
or not, when changing the console output code page (or indirectly
when starting on/connecting to a new console), depending on whether
or not the console is running on a CJK/on a non-CJK system, and the
selected code page is a CJK/a non-CJK one.

By that, the test indirectly tests the (non-exposed) consoles GetLangId
+ SetThreadLocale() calls being made under the hood.
2022-02-08 15:58:00 +01:00
Katayama Hirofumi MZ 581757d861 [KERNEL32_APITEST] Improve MultiByteToWideChar testcase
- Fix WinXP and ReactOS cases.

CORE-13349

NOTE: We use Win10's MultiByteToWideChar behaviour due to security reason.
2021-12-10 12:24:41 +09:00
Hermès Bélusca-Maïto 9393fc320e
[FORMATTING] Remove trailing whitespace. Addendum to 34593d93.
Excluded: 3rd-party code (incl. wine) and most of the win32ss.
2021-09-13 03:52:22 +02:00
Jérôme Gardou e470b58376 [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
Jérôme Gardou 0995b35bac [KERNEL32_APITEST] Fix compilation & global wut?? with SSE exception test 2021-04-28 13:10:23 +02:00
William Kent 427ea67b9c
[RTL] Add code to SxS manifest parser to parse XML namespaces (#2512)
* [XDK] Typo fix
* [XDK] Add missing ACTIVATION_CONTEXT_SECTION values
* [RTL] Merge changes from Wine
* [ROSTESTS] Fix typo
* [NTDLL] Typo fix
* Add test for new functionality
* [ROSTESTS] Fix path
* [ROSTESTS] Add test to testlist.c
2020-09-20 22:56:42 +02:00
Thomas Faber 32f17b34f5
[KERNEL32_APITEST] Enable SSE for TestSSEExceptions. CORE-17202
Clang will not let us use SSE intrinsics at all when compiling for a
target that doesn't support SSE. Since this test is a special case,
we can simply fix this by changing the options for one function.
The alternative would be to use our own inline functions for the
intrinsics instead of the builtins, like we do for GCC.
2020-08-23 12:07:38 +02:00
Amine Khaldi 139a3d6661
[CMAKE] Implement PCH builds with target_precompile_headers. CORE-16905 2020-06-06 21:58:41 +03:00
Katayama Hirofumi MZ 633770ab0d [KERNEL32_APITEST] s/QueryUserAPC/QueueUseAPC/ 2020-05-02 14:58:48 +09:00
Katayama Hirofumi MZ f3235f1074
[KERNEL32_APITEST] Add QueryUserAPC testcase (#2681)
Add a testcase for kernel32!QueryUserAPC, SleepEx and WaitForSingleObjectEx functions.
CORE-13950
2020-04-29 07:48:46 +09:00
Serge Gautherie c6e854ce7b
[KERNEL32_APITEST][WS2_32_APITEST] Call SetLastError() before checking LastError (#2437)
Follow-up to cb5aa7be.
2020-03-30 12:52:37 +02:00
Serge Gautherie cb5aa7bee4
[APITESTS] Tested function must be called before GetLastError() log (#2433)
So as to get the relevant LastError value.
Fixes for apphelp_apitest, kernel32_apitest and ws2_32_apitest.
2020-03-13 18:15:21 +01:00
Hermès Bélusca-Maïto ce3a0af4f0
[KERNEL32_APITEST] Add extra test cases for the 'ConsoleCP' test. (#2278) 2020-02-22 19:50:12 +01:00
Timo Kreuzer 42d2d5ec9c [ROSTESTS] fix x64 build and fix/disable warnings 2020-01-26 11:50:37 +01:00
Katayama Hirofumi MZ bce2d86ae3
[KERNEL32_APITEST] Strengthen ConsoleCP for Writing functions (#2235)
Add some tests for WriteConsoleOutputCharacterW and WriteConsoleOutputAttribute etc. into ConsoleCP testcase. CORE-12451
2020-01-08 21:20:24 +09:00
Katayama Hirofumi MZ 07e1f6ed47
[KERNEL32_APITEST] More power to ConsoleCP testcase (#2187)
Strengthen kernel32_apitest ConsoleCP testcase for COMMON_LVB_LEADING_BYTE and COMMON_LVB_TRAILING_BYTE attributes. CORE-12451
2019-12-29 13:12:39 +09:00
Timo Kreuzer 465745b683 [APITESTS] Improve and fix tests 2019-12-21 12:44:48 +01:00
Katayama Hirofumi MZ 7cc76d8afc [KERNEL32_APITEST] Follow-up of #2131 2019-12-09 20:55:13 +09:00
Katayama Hirofumi MZ 2f8d847c91
[KERNEL32_APITEST] Adjust ConsoleCP testcase for Win10 JPN (#2131)
CORE-12451
2019-12-05 22:07:00 +09:00
Timo Kreuzer e26c8bc66f [ROSTESTS] Skip some flaky test / do not count successes 2019-12-04 01:24:49 +01:00
Katayama Hirofumi MZ 009dafe391
[KERNEL32_APITEST] Strengthen MultiByteToWideChar(CP_UTF8, ...) testcase (#2008)
CORE-16468
2019-11-01 09:06:34 +09:00
Timo Kreuzer 1bcc69b1a0 [KERNEL32_APITEST] Fix a test that fails on Server 2003 and Windows 10 2019-09-15 14:14:06 +02:00
Victor Perevertkin 6b10706205 [APITESTS] Use StringCbPrintfA instead of sprintf
And fix a buffer size in Test_AddFontResourceA
2019-08-20 15:05:47 +02:00
Katayama Hirofumi MZ c5246d68f5
[KERNEL32_APITEST] Improve SetComputerNameExW testcase (#1661)
Improve SetComputerNameExW testcase to check invalid characters. CORE-16122
2019-06-17 20:33:31 +09:00
Serge Gautherie 73938ee96f [ROSTESTS] Add missing '\n' to a few skip() 2019-06-06 17:33:59 +02:00
Katayama Hirofumi MZ 6b5bb194b0
[KERNEL32_APITEST] dynamic linked RtlIsCriticalSectionLockedByThread (#1592)
Statically linked ntdll.RtlIsCriticalSectionLockedByThread had made kernel32_apitest unable to run in XP. CORE-16077
2019-05-31 20:23:30 +09:00
Katayama Hirofumi MZ 8d38373fd2 [KERNEL32_APITEST] Check CJK codepage before tests 2019-05-31 16:28:07 +09:00
Katayama Hirofumi MZ dbc20b6484
[KERNEL32_APITEST] Check also 'NV Hostname' in SetComputerNameExW testcase (#1581)
Also test NV Hostname registry value in the testcase of kernel32!SetComputerNameW. ROSTESTS-322
2019-05-27 11:24:16 +09:00
Katayama Hirofumi MZ 87f5d017a4 [KERNEL32_APITEST] Fix build 2019-05-27 02:34:32 +09:00
Serge Gautherie de2b20d240 [KERNEL32_APITEST] Improve SetComputerNameExW test a bit (#1580)
Addendum to 8aeb6a9. ROSTESTS-227
2019-05-27 02:33:03 +09:00
Katayama Hirofumi MZ 8aeb6a920a
[KERNEL32_APITEST] Add SetComputerNameExW testcase (#1578)
Add testcase of kernel32!SetComputerNameExW function. ROSTESTS-227
2019-05-25 21:15:24 +09:00
Katayama Hirofumi MZ 0ac563b3ec [KERNEL32_APITEST] JapaneseCalendar: Reiwa era has come! 2019-05-01 16:15:23 +09:00
Hermès Bélusca-Maïto f21f750467
[KERNEL32_APITEST] Rename the 'Console.c' file into 'ConsoleCP.c' and its test-function as well, in order to reflect the actual name of the corresponding test. 2019-04-28 23:46:35 +02:00
Katayama Hirofumi MZ a008bf8ef2
[KERNEL32_APITEST] Improve one-character Heisei tests (#1483)
One-character Heisei for CAL_SABBREVERASTRING locale info can be U+337B or U+5E73. And one-character Reiwa U+32FF, U+4EE4, and U+F9A8 are also added. Improve kernel32_apitest testcase. Thanks @ThFabba CORE-15920
2019-04-07 18:35:52 +09:00
Katayama Hirofumi MZ 72990b29c5 [KERNEL32_APITEST] JapaneseCalendar must work even if not codepage 932"
Delete (GetACP() != 932) check.
2019-04-07 12:18:54 +09:00
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00
Katayama Hirofumi MZ afb47b845f [KERNEL32_APITEST] s/48815/0xBEAF/ 2019-04-06 21:59:35 +09:00
Katayama Hirofumi MZ 3ce3b4c283 [KERNEL32_APITEST] Follow up of 89af984 2019-04-06 18:20:04 +09:00
Katayama Hirofumi MZ 89af984b16 [KERNEL32_APITEST] 5-byte, 6-byte, ... UTF-8 sequences 2019-04-06 17:48:15 +09:00
Katayama Hirofumi MZ eee53c734b [KERNEL32_APITEST] Careless 2019-04-06 13:55:03 +09:00
Katayama Hirofumi MZ 0cdee99e05 [KERNEL32_APITEST] Trivial 2019-04-06 13:51:34 +09:00
Katayama Hirofumi MZ e015239426 [KERNEL32_APITEST] Forgot FreeLibrary 2019-04-06 13:48:05 +09:00
Katayama Hirofumi MZ aa39ad97aa [KERNEL32_APITEST] Follow up of #1472 2019-04-06 13:34:21 +09:00
Katayama Hirofumi MZ 3400a27ca5
[KERNEL32_APITEST] Improve MultiByteToWideChar testcase (#1472)
Strengthen the testcase for kernel32!MultiByteToWideChar function. ROSTESTS-282
2019-04-05 22:04:04 +09:00