Commit graph

858 commits

Author SHA1 Message Date
Carl J. Bialorucki
410db43f20
[IPHLPAPI_APITEST] Test failure fixes (#8214)
- liCreateTimestamp isn't set in TCP tables on several Windows versions. If it isn't, then we can't compare it to the current system time; so don't.
- GetInterfaceName had some test failures unique to Vista, guard them.
- icmp: Accept either ERROR_INVALID_HANDLE  or ERROR_INVALID_PARAMETER as a last error in a couple tests.
2025-07-04 19:14:24 -06:00
Dmitry Borisov
0462ebf0d6
[COMCTL32_APITEST] Add a testcase for product version string (#8216)
Addendum to commit b5f763447c.

- KVM x86: https://reactos.org/testman/compare.php?ids=102897,102903
- KVM x64: https://reactos.org/testman/compare.php?ids=102898,102905

comctl32:tooltipv6: 1 tests executed (0 marked as todo, 0 failures), 0 skipped.
2025-07-04 21:26:37 +03:00
Carl J. Bialorucki
33336d0369
[APITESTS] Add GetNTVersion() macro for version detection on Windows 8.x+ (#8225)
Grab the NT version from KUSER_SHARED_DATA and expose it in GetNTVersion().
2025-07-03 14:51:10 -06:00
Timo Kreuzer
5549fbd6a4 [NTDLL_APITEST] Remove unused / broken definitions 2025-06-29 09:31:14 +00:00
Katayama Hirofumi MZ
f7c36c6d94
[SHELL32_APITEST] Certainly close newly-opened windows (#8171)
It's frustrating when windows open
during a test and remain after the test
is over.
JIRA issue: ROSTESTS-402
- Delete closewnd.cpp. Enhance
  closewnd.h.
- Modify ShellExecCmdLine,
  ShellExec_RunDLL, ShellExecuteEx,
  and ShellExecuteW testcases.
- Certainly close the newly-opened
  windows.
2025-06-26 18:20:49 +09:00
Katayama Hirofumi MZ
aaed9f77d9
[SHELL32_APITEST] Enhance SHAppBarMessage testcase (#8149)
SHAppBarMessage testcase has to
cover the auto-hide feature. Make the
testcase more stable.
JIRA issue: CORE-7237
Add more tests.
2025-06-25 08:48:30 +09:00
Timo Kreuzer
6243d16945 [CRT_APITEST] Add tests for _isnan(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
b3dff9df15 [CRT_APITEST] Add tests for _finite(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
39e534bddc [CRT_APITEST] Add a tests for tan(f) / __libm_sse2_tan(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
85e2f6b26c [CRT_APITEST] Add tests for sqrt(f) / _libm_sqrt_precise 2025-06-23 17:35:21 +00:00
Timo Kreuzer
7360d0abe7 [CRT_APITEST] Add a tests for sin(f) / __libm_sse2_sin(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
90f10847f7 [CRT_APITEST] Add a tests for log10(f) / __libm_sse2_log10(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
8235099f4d [CRT_APITEST] Add a tests for log(f) / __libm_sse2_log(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
9ee1847379 [CRT_APITEST] Add a tests for exp(f) / __libm_sse2_exp(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
c4a2dbd1b0 [CRT_APITEST] Add a tests for cos(f) / __libm_sse2_cos(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
1536f521d6 [CRT_APITEST] Add a tests for atan(f) / __libm_sse2_atan(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
8b1a8d5b67 [CRT_APITEST] Add a tests for asin(f) / __libm_sse2_asin(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
bf225ab7da [CRT_APITEST] Add a tests for acos(f) / __libm_sse2_acos(f) 2025-06-23 17:35:21 +00:00
Timo Kreuzer
3b895a3c12 [CRT_APITEST] Add a python tool to generate test tables for math functions
Note: The code contains a custom implementation of ldexp in python, because on Windows (below Win 11) ldexp is broken and rounds denormals incorrectly. ldexp is used by mpmath to convert multi-precision to float, which led to incorrect floating point results (specifically denormals).
2025-06-23 17:35:21 +00:00
Timo Kreuzer
a42b3c36e4 [UCRTBASE_APITEST] Add tests for round/roundf 2025-06-23 17:35:21 +00:00
Timo Kreuzer
43546cb5c2 [UCRTBASE_APITEST] Add ucrtbase_apitest
First test is ceil.
2025-06-23 17:35:21 +00:00
Timo Kreuzer
36183cfc51 [KERNEL32_APITEST] Add tests for GetFinalPathNameByHandleW 2025-06-22 13:01:07 +00:00
Timo Kreuzer
007c9521ca [NTDLL_APITEST] Add another test for NtQueryObject
This shows that wine's implementation is broken, which wine's GetFinalPathNameByHandle relies on.
2025-06-22 13:01:07 +00:00
Timo Kreuzer
26fae132d6 [UMKM_APITEST] Add test for XSTATE configuration 2025-06-21 07:55:06 +00:00
Timo Kreuzer
84c205bd06 [UMKM_APITEST] Add test for extended state saving 2025-06-21 07:55:06 +00:00
Timo Kreuzer
c37310b4e0 [KERNEL32_APITEST] Add tests for GetLocaleInfoEx 2025-06-19 17:36:40 +00:00
Timo Kreuzer
fa79aaa0f3 [KERNEL32_APITEST] Add tests for LocaleNameToLCID 2025-06-19 17:36:40 +00:00
Timo Kreuzer
be1cd6987b [KERNEL32_APITEST] Add a test for LCMapString 2025-06-19 17:36:40 +00:00
Timo Kreuzer
2bec8c9d4c [KERNEL32_APITEST] Add tests for GetCPInfo 2025-06-19 17:36:40 +00:00
Timo Kreuzer
942d362ff8 [NTDLL_APITEST] Add another test for RtlLocaleNameToLcid 2025-06-19 17:36:40 +00:00
Carl J. Bialorucki
bf734eb002
[APPHELP_APITEST] Fix test failures on Vista, 7, 8.1 x86 and x64 (#8122)
* Disable most apphelp:env and some apphelp:db tests on x64 due to structure differences breaking these tests.
* Add new tag lists for Windows 8.1 and Windows 10 in apphelp:apphelp test.
* Make a few changes to accept either Windows 10 or Windows 8.1 and older behavior in apphelp:apphelp test.
* Create new shimdata structures for Windows 8 and Windows Vista.
* Add attribute size definitions for Vista, 8.1, and 10.
* Create new shim data validation functions for Vista and 8.1.
* Use local time instead of UTC time for shim db version. This fixes test failures when the day in local time and the day in UTC are different.
2025-06-17 11:18:32 -06:00
Timo Kreuzer
c0b4a2cab0 [NTDLL_APITEST] Fix unreliable test for NtContinue
Some EFLAGS bits depend on the hardware / OS environments.
2025-06-16 16:47:41 +00:00
Katayama Hirofumi MZ
1ece139178
[SHLWAPI][SHLWAPI_APITEST][SDK] Support MayExecForward + MayQSForward (#8125)
Follow-up of #8124. Implementing missing features...
JIRA issue: CORE-19278
- Implement MayExecForward and MayQSForward
  functions.
- Modify these prototypes in <shlwapi_undoc.h>.
- Add tests to shlwapi_apitest IsQSForward.
2025-06-16 07:31:47 +09:00
Katayama Hirofumi MZ
3b73f625b8 [SHLWAPI_APITEST] Follow-up of #8124; Fix IsQSForward testcase
JIRA issue: CORE-19278
2025-06-15 08:14:35 +09:00
Katayama Hirofumi MZ
80381b0578
[SHLWAPI][SHLWAPI_APITEST][SDK] Implement IsQSForward (#8124)
Implementing missing features...
JIRA issue: CORE-19278
- Implement IsQSForward function.
- Modify IsQSForward prototype in <shlwapi_undoc.h>
- Add IsQSForward testcase to shlwapi_apitest.
2025-06-14 20:57:33 +09:00
Katayama Hirofumi MZ
3c35117f97
[NTUSER][USER32_APITEST] TrackPopupMenuEx: Check flags (#8094)
Validate flags.
JIRA issue: CORE-3247
- In NtUserTrackPopupMenuEx function, validate the flags.
- If validation failed, then set last error and return FALSE.
- Add SAL annotations to NtUserTrackPopupMenuEx.
- Keep reference to menu in the function.
- Add TrackPopupMenuEx testcase to user32_apitest.
2025-06-10 21:25:14 +09:00
Katayama Hirofumi MZ
92ff994cc2
[SDK][USER32_APITEST] Update <msgdump.h> (#8099)
JIRA issue: N/A
- Replace MSGDUMP_TPRINTF with
  MSGDUMP_PRINTF and use ANSI for
  strings. Now, we can use printf-
  compatible function for dump.
- Fix some mistakes.
- Adapt user32_apitest
  MessageStateAnalyzer to these
  changes.
2025-06-08 14:10:22 +09:00
Timo Kreuzer
c129b6d921 [COMPILER_APITEST] Disable some tests for GCC
We cannot fix these, since GCC inlines the conversion.
2025-06-07 15:53:51 +00:00
Katayama Hirofumi MZ
7d8d8a6e52
[USER32_APITEST] Add MenuUI testcase (#8066)
Verifying menu behavior.
JIRA issue: CORE-5065
JIRA issue: CORE-10829
JIRA issue: CORE-11756
- Add user32_apitest_menuui sub
  program for MenuUI testcase.
- Add MenuUI testcase.
2025-06-04 05:56:01 +09:00
Carl J. Bialorucki
0947a64a90
[GDI32_APITEST] Fix test on all versions of Windows at certain vertical resolutions (#8048)
* Use MulDiv to generate the result and negate that instead of dividing by a negative number, which can cause test failures.
2025-06-03 14:08:03 -06:00
Katayama Hirofumi MZ
2ab01e7302
[SHELL32_APITEST] Add shell32_apitest_sub dependency (#8077)
Improve shell32_apitest build.
JIRA issue: N/A
Add dependency to shell32_apitest_sub.
2025-06-03 23:22:06 +09:00
Carl J. Bialorucki
dd896f6f44
[DNSAPI_APITEST] Fix dnsapi:DnsQuery on Server 2003 x86, 8.1 x86, 8.1 x64, 10 x86, 10 x64 (#8043)
* Windows Server 2003 x86 may return a DNS_ERROR_RCODE_NAME_ERROR in some tests where other versions of Windows may return ERROR_INVALID_NAME, ERROR_TIMEOUT, or DNS_ERROR_INVALID_NAME_CHAR. Pass this behavior.

* Windows 8+ sets the query to a null pointer when given an invalid query pointer while earlier Windows versions don't change the query pointer. Pass either behavior.
2025-06-02 12:15:45 -06:00
Timo Kreuzer
87b8c1ee2f [NTDLL_APITEST] Fix build 2025-05-31 13:14:31 +00:00
Timo Kreuzer
001d0051e9 [CRT_APITEST] Fix test failures on Win 2003 x64 2025-05-31 09:57:32 +00:00
Carl J. Bialorucki
b627a42898
[APPSHIM_APITEST] Fix test for x86 Vista and 7 (#8042)
On x86 builds, accept the sentinel hmodule instead of the 111 hmodule and 0 hmodule for Vista and 7.
2025-05-27 16:11:42 -06:00
Whindmar Saksit
c03d7794b8
[SHELL32_APITEST] Fixed SimpleIDListFromPath and SHGetFileInfo tests on NT5 (#8038) 2025-05-27 00:10:53 +02:00
Whindmar Saksit
6bd0ffc494
[SHELL32_APITEST] Fix control panel printers PIDL test (#8022) 2025-05-24 22:08:54 +02:00
Timo Kreuzer
08b6106aac [NTDLL_APITEST] Improve test for NtQuerySection 2025-05-22 18:39:14 +00:00
Timo Kreuzer
f920d349e0 [APITESTS] Improve ok_* macros to avoid format warnings 2025-05-22 18:39:14 +00:00
Timo Kreuzer
40721f49ba [CRT_APITEST] Reorganize tests
- Move build files and testlist.c into individual modules folder
2025-05-21 14:29:29 +00:00