Commit graph

78 commits

Author SHA1 Message Date
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
Thomas Faber b3bd2aabe1
[COM_APITEST] Fix test failures on Win2003. 2018-03-02 15:23:05 +01:00
Hermès Bélusca-Maïto 5f4a4b35e6
[ADVAPI32_APITEST] Open services & SCM handles with correct access rights; improve a check order. 2018-02-25 16:11:00 +01:00
Mark Jansen 8e1f342990
[APPSHIM_APITEST] Add Win8 and Win81 versionlie tests 2018-02-24 19:33:50 +01:00
Hermès Bélusca-Maïto b77840d3a2
[SHELL32_APITEST] Run the CUserNotification worker test function in a thread to copy with possible test timeouts. CORE-13177 2018-02-17 16:02:22 +01:00
Hermès Bélusca-Maïto d1265b932c
[COM_APITEST] Reenable two known interfaces (#367). Caught by Thomas. 2018-02-16 00:15:41 +01:00
Hermès Bélusca-Maïto 02d17df031
[SHELL32_APITEST] Add a test for the CUserNotification implementation. CORE-13177 2018-02-15 22:38:38 +01:00
Hermès Bélusca-Maïto 70bbdca202
[COM_APITEST] Add tests for IUserNotification. CORE-13177 2018-02-15 22:37:32 +01:00
Serge Gautherie 12b0dfb71e [APPSHIM_APITEST] Fix 2 Clang-Cl warnings about ok2
"warning: expression result unused [-Wunused-value]"

CORE-14306
2018-02-12 12:34:20 +01:00
Stanislav Motylkov fad8b1f545 [IPHLPAPI_APITEST] Add tests for IcmpSendEcho 2018-01-31 17:28:21 +00:00
Giannis Adamopoulos 5b8975211d [GDIPLUS] Add it to winsxs.
[NTDLL_APITEST] Remove a hack for gdiplus
2018-01-27 02:45:50 +02:00
Giannis Adamopoulos 22317b0ca4 [NTDLL_APITEST] Remove one of the hacks for the implicit activation context. 2018-01-27 02:45:50 +02:00
Katayama Hirofumi MZ 19f8ed2b7a [GDI32_APITEST] Add GetTextMetrics tests to gdi32_apitest (#307)
CORE-13840
2018-01-26 23:23:00 +02:00
Serge Gautherie 804472fab8 [ATL_APITEST] CComObject.cpp: Fix output test name copypasta. 2018-01-24 18:59:19 +01:00
Mark Jansen eec2e288be [APPSHIM_APITEST] Windows 10 test update 2018-01-21 21:13:08 +01:00
Mark Jansen f9395e92af [APPHELP][APPHELP_APITEST] Fix SdbGetAppPatchDir prototype 2018-01-21 21:13:08 +01:00
Mark Jansen f4f4466ffd [APPSHIM_APITEST] Add test for shims in AcLayers 2018-01-21 21:13:08 +01:00
Mark Jansen fc503b7c08 [APPSHIM_APITEST] Add test for shims in AcGenral 2018-01-21 21:13:08 +01:00
Colin Finck 22ffe5300b [PRINTING] Replace all my custom marshalling code by calls to the newly implemented APIs, thereby significantly reducing the codebase and providing a sane template to implement more Printing APIs. 2018-01-17 12:52:12 +01:00
Colin Finck f3ea8225cb [PRINTING] Implement the undocumented MarshallDownStructure, MarshallDownStructuresArray, MarshallUpStructure, and MarshallUpStructuresArray to the extent I need and could find out through black-box testing.
PDBs reveal that these functions are also used in winspool.drv, but not imported from spoolss.dll to retain the client/server architecture.
As winspool.drv highly benefits from the MarshallUp* functions, I put them in a source file shared between spoolss.dll and winspool.drv.

The added API Tests cover my testing and all implemented features.
One more item done from https://reactos.org/wiki/Printing !
2018-01-17 10:13:25 +01:00
Mark Jansen 4bdc74bf5d [COM_APITEST] Add zipfldr tests.
CORE-7684 #234
2017-12-31 14:56:22 +01:00
Colin Finck 3b93ba0f31 [LOCALSPL] Fix parameter handling in LocalSetJob and add tests for the few ways we can easily test this function.
Yes, it checks the input handle and doesn't fail if an invalid level is given, because someone may still send a Command.
This also fixes CORE-12794. Thanks for reporting!
2017-12-25 14:30:47 +01:00
Mark Jansen 9187a81538 [ATL_APITEST] Add a test for CComBSTR.Attach/Detach 2017-12-25 14:00:51 +01:00
Mark Jansen bccdcded28 [ATL_APITEST] Add a test for CString.AllocSysString 2017-12-25 14:00:51 +01:00
Amine Khaldi a66bbfa92c [SHELL32_APITEST] Rename TestShellFolder, test_data and Tests. #179 2017-12-25 13:33:33 +01:00
Giannis Adamopoulos 1db8bd46d6 [NTDLL_APITEST] -Add a hacky Microsoft.Windows.GdiPlus.manifest.
This is needed because ntdlltest.manifest has a dependency
on gdiplus and won't load because we don't have it in winsxs.
Eventually this must be removed.
2017-12-24 21:19:03 +02:00
Giannis Adamopoulos 7059421a23 [NTDLL_APITEST] Add several tests for RtlDosApplyFileIsolationRedirection_Ustr 2017-12-24 21:19:03 +02:00
Mark Jansen f941c78f50 [ATL_APITEST] Show that CComObject's COM_MAP continues enumeration after a failing blind function. 2017-12-21 21:37:54 +01:00
Amine Khaldi b09a63709b [WS2_32_APITEST] Improve the existing PCH and make use of it. 2017-12-21 13:36:04 +01:00
Amine Khaldi 823270e608 [ATL_APITEST] Add a PCH. 2017-12-21 13:31:24 +01:00
Mark Jansen cba274350e [BROWSEUI_APITEST] Add tests for IACLCustomMRU.
CORE-9281
2017-12-18 23:17:17 +01:00
Mark Jansen 8aaa5eea75 [COM_APITEST] Add IACLCustomMRU 2017-12-18 23:17:17 +01:00
Amine Khaldi e36cf4acaf [APITESTS][WINETESTS] Addendum to the recent PCH work. 2017-12-18 13:21:47 +01:00