Commit graph

110 commits

Author SHA1 Message Date
Katayama Hirofumi MZ 328a4c3834
[APITESTS] Add CloseWindow testcase (#996)
Add a testcase for user32!CloseWindow function.
2018-10-30 08:38:03 +09:00
Katayama Hirofumi MZ 3e00e7fb22
[APITESTS][USER32] Add testcase for SwitchToThisWindow (#980)
Add an API test program for user32!SwitchToThisWindow function.
JIRA issue: CORE-15165
2018-10-26 19:56:25 +09:00
Hermès Bélusca-Maïto 76e2698237
[NTDLL_APITEST] Re-enable the part of the NtLoad/UnloadKey test related to force-unload a hive with opened sub-key handles.
Effectively reverts b17ce9c8 (r75138).

CORE-13448
2018-10-22 00:05:21 +02:00
Hermès Bélusca-Maïto 57a9fca04b
[USER32_APITEST] Add a test for PrivateExtractIcons(A/W) that shows that this API can accept unexpanded file paths.
CORE-15150
2018-10-07 20:32:26 +02:00
Hermès Bélusca-Maïto cd473963f4
[SHELL32_APITEST] Fix the code with respect to what the comments say. No change in test results happen. 2018-10-07 20:32:22 +02:00
Mark Jansen 7882b6cfe3
[SHELL32_APITEST] Speed up the CUserNotification test in the failure case. 2018-09-23 20:03:08 +02:00
Mark Jansen b6e3cf3c03
[KERNEL32_APITEST] Test FLS locking & exception behavior. 2018-09-15 17:56:03 +02:00
Mark Jansen f0f8f1c7d9
[KERNEL32_APITEST] Add test exposing FLS internals. 2018-09-15 17:55:57 +02:00
Hermès Bélusca-Maïto 9a11551a56
[GDI32_APITEST:GetTextFace] Replace tabs by spaces. 2018-09-01 17:18:03 +02:00
Doug Lyons c74696c06d
[GDI32_APITEST] Add tests for GetTextFaceAliasW(), based on Katayama Hirofumi MZ's tests from CORE-14926.
CORE-14995
2018-09-01 17:17:08 +02:00
Mark Jansen 66e40be8eb
[NTDLL_APITEST] Various small fixes
- Add a missing file
- Add convenience targets for MSVC_IDE
- Remove whitespace at the end of the lines
2018-08-27 20:05:00 +02:00
Katayama Hirofumi MZ b8ea1b3416 [GDI32][APITESTS] Add GetGlyphOutline testcase (#776)
CORE-14928
2018-08-20 16:31:32 +02:00
Serge Gautherie 155bd681a0 [GDI32_APITEST] Remove broken EngDeleteSemaphore.c (#655)
- Checks are actually uses-after-free, "by design" :-<
- Actual test code duplicates EngCreateSemaphore.c, EngAcquireSemaphore.c and EngReleaseSemaphore.c.
2018-08-19 22:33:56 +02:00
Stanislav Motylkov b851d7e1d3 [KERNEL32_APITEST] Add SystemFirmwareTableInformation tests
Thanks goes to Mark Jansen for help!
2018-08-19 20:27:59 +02:00
Mark Jansen 4b8f6d5eab [ATL_APITEST] Add test for CComQIPtr (or rather, our gcc hack that slightly looks like it) 2018-08-19 17:35:18 +02:00
Mark Jansen 13a3cf03d7
[APPHELP_APITEST] Fix rc dependency.
As pointed out by Thomas.
2018-08-13 13:24:12 +02:00
Mark Jansen 9b6fb9f2f8
[RTL][KERNEL32] Add a comment indicating we need SEH in RtlImageNtHeaderEx
CORE-14532
CORE-14857
2018-08-13 13:24:12 +02:00
Mark Jansen 86fe412d5c
[NTDLL_APITEST] Show behavior with exceptions in DllMain.
CORE-14532
2018-08-13 13:24:12 +02:00
Katayama Hirofumi MZ db13b422b3 [SHELL32] Fix a careless mistake of ShellExecCmdLine (#737)
CORE-14886
2018-08-10 13:25:50 +02:00
Katayama Hirofumi MZ bfcbda227f [SHELL32] Fix handling of multiple parameters in the 'Run' dialog (#665)
The "Run" dialog failed when multiple parameters wee specified.
We use instead a newly-created ShellExecCmdLine() helper function to fix the problem (as found via API-tracing on Windows).
Note that ShellExecCmdLine() starts to be exported with Vista+.

- Implement ShellExecCmdLine() function in shell32.
- Add URL support.
- Fix RunDlgProc function in shell32.
- Add a testcase for ShellExecCmdLine() function.

CORE-14790
2018-08-05 13:39:17 +02:00
Timo Kreuzer 7cf7b27a3a [ROSTESTS] Fix 64 bit issues 2018-08-04 14:39:13 +02:00
Stanislav Motylkov 8acc68dd98
[KERNEL32_APITEST] Add SystemFirmware tests
CORE-12105
2018-08-02 21:15:28 +02:00
Hermès Bélusca-Maïto e90316aeaa
[USER32_APITEST] Add few other tests (validation of the desktop path string); improve the output of some messages, displaying the expected values in case of test failure.
See also PR #621.
2018-07-22 19:03:17 +02:00
Katayama Hirofumi MZ 6f82659da6 [SHLWAPI][APITESTS] Add test for PathUnExpandEnvStringsForUser (#602)
ROSTESTS-308
2018-06-22 16:44:58 +02:00
Serge Gautherie 15c29d0798 [NETAPI32_APITEST] Fix a NULL dereference of pInfo
With DPH enabled,
{{
Unhandled exception
ExceptionCode:    c0000005
Faulting Address:        0
...
modules/rostests/apitests/netapi32/DsRoleGetPrimaryDomainInformation.c:23 (func_DsRoleGetPrimaryDomainInformation)
...
}}
2018-06-17 12:16:08 +02:00
Katayama Hirofumi MZ 12713b7709
[APITESTS] Add ShellStateTest 2018-06-14 20:07:52 +02:00
Katayama Hirofumi MZ d5f5161804
[SHELL32][APITESTS] Add tests of OpenAs_RunDLL 2018-06-14 19:59:11 +02:00
Serge Gautherie cac1bc12ae [USER32_APITEST] RedrawWindow: Add a DestroyWindow() call (#423)
Addendum to 7905efdf35.

CORE-13734
2018-06-05 21:23:21 +02:00
Thomas Faber ffa94ca0f0 [NTDLL_APITEST] Add tests for mapping and relocating an image with IMAGE_SCN_CNT_UNINITIALIZED_DATA
CORE-12582
CORE-14556
2018-06-03 20:40:51 +02:00
Eric Kohl ac45758aff [NTDLL_APITEST] Add missing test file for 0f8e7207.
CORE-14658
2018-05-31 17:12:52 +02:00
Eric Kohl 0f8e720711 [NTDLL_APITEST][LIB_RTL] Add a test for RtlQueryTimeZoneInformation and fix the bug in RtlpQueryRegistryDirect
In working on some problems with Time Zone adjustments in  ReactOS I found that the RtlQueryTimeZoneInformation function is partially broken and wrote an apitest to capture the failures.

Patch by Doug Lyons.

CORE-14658
2018-05-31 16:47:42 +02:00
Amine Khaldi 41e2b83f96 [INCLUDE/WINE][USER32_APITEST] Add ARRAY_SIZE to test.h and remove it from RealGetWindowClass.c. CORE-14656 2018-05-27 04:05:33 +01:00
Serge Gautherie f6a4ec8041 [APPSHIM_APITEST] Fix a Clang-Cl warning about n
- "warning: comparison of unsigned expression >= 0 is always true [-Wtautological-unsigned-zero-compare]"

CORE-14306
2018-05-08 21:36:26 +02:00
Thomas Faber 93edd2a185
[IPHLPAPI_APITEST] Avoid crash on ROS and failure on Windows. CORE-14411
- Make the reply buffer for IcmpSendEcho large enough to hold the reply,
  even when testing a smaller size. This avoids a buffer overflow with ROS's
  broken implementation.
- Avoid unnecessary initialization.
- Fix IcmpSendEcho return value check to succeed on Win2003.
- Don't free a string literal in the GetInterfaceName test.
2018-05-06 08:36:19 +02:00
Mark Jansen 0a5a0a3501
[APPSHIM_APITEST] Add a test for the shim IgnoreFreeLibrary 2018-04-22 18:51:21 +02:00
Giannis Adamopoulos 082cdfb9e8 [COMCTL32_APITEST] Add some button tests 2018-04-20 16:27:17 +02:00
Mark Jansen 74bb9d5dc0
[APPHELP_APITEST] Add tests for Data tags 2018-04-12 18:49:25 +02:00
Mark Jansen 7fe78f2779
[SHELL32_APITEST] Show that our current SHCreateFileExtractIconW is incorrect.
CORE-14082
2018-04-07 15:29:59 +02:00
Timo Kreuzer 6b1ca75899
[REACTOS] Fix 64 bit build (#465)
* [HAL] Simplify HalpReboot() and make it portable
* [NTOS:MM] Cast constant to PVOID
* [BINPATCH] Fix 64 bit build
* [VFDDRV] Fix 64 bit build and buffer overruns
* [USBOHCI] Fix structure alignment issues
* [ATL_APITEST] Fix 64 bit build
* [XDK] Update unwind structures in winnt.h
* [NTDLL_APITEST] Fix 64 bit build
* [NTDLL_WINETEST] Fix 64 bit build
* [TFTPD] Fix x64 build
* [USBPORT] Fix a C_ASSERT
* [DSOUND] Fix x64 build
* [HAL] Remove obsolete GetPteAddress() macro
2018-04-03 15:13:17 -06:00
Mark Jansen 96c0f7d341
Add initial test for IShellFolderViewCB 2018-03-30 19:46:24 +02:00
Mark Jansen 47da433742
[WS2_32_APITEST] Add additional testcases.
CORE-13067
2018-03-20 22:20:12 +01:00
Mark Jansen 3bf5349172
[WS2_32_APITEST] Add a test showing that GetFileType / _open_osfhandle should succeed.
CORE-13067
2018-03-19 22:35:21 +01:00
Mark Jansen 8bbbab534a
[APPHELP_APITEST] Fix some 64 bit issues. 2018-03-18 15:58:04 +01:00
Serge Gautherie 7f208124c9 [NTDLL_APITEST] Fix/Extend ApiTest NtAllocateVirtualMemory (#207)
* Fix 1 failure on both WS03 and ReactOS.
* Create CheckSomeDefaultAddresses(), with additional checks.
* Update license header.
* ROSTESTS-297
2018-03-17 17:30:01 +01:00
Serge Gautherie 84a9284a3f
[APPHELP_APITEST] Fix a Clang-Cl warning about a memcmp() call
"warning: argument to 'sizeof' in 'memcmp' call is the same pointer type 'SDBQUERYRESULT_VISTA *' (aka 'struct tagSDBQUERYRESULT_VISTA *') as the destination; expected 'SDBQUERYRESULT_VISTA' (aka 'struct tagSDBQUERYRESULT_VISTA') or an explicit length [-Wsizeof-pointer-memaccess]"

CORE-14306
2018-03-07 20:42:14 +01:00
Serge Gautherie 601871955f
[APPHELP_APITEST] env.c: Fix a 3rd Windows S2003 special case
Test_Shimdata() already has a TODO with 2 special cases.

- Special-case "dwLayerCount" too.
- Add extra-safety checks.
2018-03-07 20:42:14 +01:00
Thomas Faber 7905efdf35
[USER32_APITEST] Add a test for PeekMessage without DispatchMessage for WM_PAINT. CORE-13734 2018-03-07 13:20:42 +01:00
Mark Jansen 754a2fa872
[SHLWAPI_APITEST] Add test for SHAreIconsEqual 2018-03-05 22:43:17 +01:00
Thomas Faber 680d69d373
[AFD_APITEST] Introduce a test for directly creating and using sockets via AFD. CORE-9810
The initial tests in send.c validate correct behavior of send/sendto on
disconnected sockets (CORE-9810), fixed in r68129.
However, the helper functions are generic, so they can be used for additional
tests against AFD. Because AFD's create packet structure changes between
Windows versions, the functions check the OS version to determine the right
layout.
Tests succeed on Win2003 as well as Win10.
2018-03-05 14:52:56 +01:00
Thomas Faber 88b9b90337
[COM_APITEST] Add some interfaces. 2018-03-02 15:23:13 +01:00