Commit graph

2919 commits

Author SHA1 Message Date
Giannis Adamopoulos 6aa52a76c8 [COMCTL32_APITESTS] -Add toolbar tests for TB_SETBUTTONSIZE, TB_SETPADDING, TB_GETBUTTONSIZE, TB_GETMETRICS.
svn path=/trunk/; revision=75462
2017-07-31 13:04:09 +00:00
David Quintana 30a8a02f54 [APITESTS]
MSVCRT_CRT_APITEST: Remove getmainargs tests from X64 build.
DELAYIMP: Fix callback prototype.
CComHeapPtr: Fix implementation of IMallocSpy to match the actual interface.

[WINETESTS]
ntdll: Disable 'generated' tests when not i386 platform, since they were generated for x86 and not x64 or ARM.


Fixes x64 compilation for tests.

svn path=/trunk/; revision=75397
2017-07-24 15:09:22 +00:00
Hermès Bélusca-Maïto 73375485df [MSVCRT_APITEST]: Commit a simple test for popen(), by Andreas Maier.
CORE-11568

svn path=/trunk/; revision=75364
2017-07-17 15:27:40 +00:00
Mark Jansen 39596fae98 [APPHELP_APITEST] Convert test_match_ex to a data driven test + fix a bug in the apitest.
svn path=/trunk/; revision=75342
2017-07-14 20:35:11 +00:00
Giannis Adamopoulos 3841692020 [COMCTL32_APITEST] - Log the dwDrawStage when the NM_CUSTOMDRAW is received to make the test slightly more descriptive.
svn path=/trunk/; revision=75320
2017-07-12 12:17:05 +00:00
James Tabor e22e9fc81f [GDI32_WINETEST]
- Sync with Wine main head 2017-07-03.

svn path=/trunk/; revision=75275
2017-07-03 20:39:50 +00:00
Mark Jansen 85dde2e51b [USER32_APITEST] Add tests to validate the messages sent during MDI window creation. CORE-12052
The test passes from 2k3 - 10.

svn path=/trunk/; revision=75274
2017-07-03 20:33:36 +00:00
Thomas Faber 1931f33c9b [KMTESTS:KERNEL32]
- Add a test for SetFileAttributes/GetFileAttributes
- Add KmtSendUlongToDriver helper and fix some doc comments
CORE-13495

svn path=/trunk/; revision=75236
2017-06-29 16:16:20 +00:00
Thomas Faber 24ac7c8bed [KMTESTS:KERNEL32]
- Rename FindFile_drv to kernel32_drv (and perform some other appropriate renames), since it can be used for multiple tests, not just FindFile
- Change license to LGPL (this is okay since nobody but me has touched these files)
CORE-13495

svn path=/trunk/; revision=75235
2017-06-29 15:30:23 +00:00
Colin Finck ef0ae276af [NETAPI32_APITEST]
Fix GCC build

svn path=/trunk/; revision=75209
2017-06-26 15:43:58 +00:00
Colin Finck e5654cce9f [NETAPI32_APITEST]
Add a simple API Test for netapi32.dll, only covering DsRoleGetPrimaryDomainInformation so far.
It succeeds in ReactOS, but outputs a heap error in the debug log. In real world applications, this later leads to a heap assertion failure.

svn path=/trunk/; revision=75208
2017-06-26 15:19:07 +00:00
Colin Finck 1525fa31fc [PRINTING]
- Create the actual generic handle in _LocalOpenPrinterHandle.
- Fix _RpcClosePrinter call.
- Enable many more tests in winspool_apitest, GetPrinterData.
- Bail out with ERROR_INVALID_PARAMETER for empty strings in _MakePrinterSubKey as well.
- Add the Name registry value for "Dummy Printer on LPT1" to make a test succeed.

This fixes many basic things.. which only got unnoticed, because Printing is only used in the form of API Tests so far.

CORE-13458
CORE-13459

svn path=/trunk/; revision=75207
2017-06-26 15:16:46 +00:00
Colin Finck 2bd66111fc [ADVAPI32_APITEST]
Fix copy-paste mistakes in messages.

svn path=/trunk/; revision=75206
2017-06-26 15:10:27 +00:00
Mark Jansen 54d38174b1 [APPHELP_APITEST] Add tests for SdbGetMatchingExe, to test matching on version resources. CORE-13284
svn path=/trunk/; revision=75205
2017-06-26 14:58:08 +00:00
Mark Jansen 5c59bd330a [APPHELP_APITEST:db] Fix the test for Win10, use WCHAR for data paths
svn path=/trunk/; revision=75201
2017-06-26 10:26:57 +00:00
Giannis Adamopoulos 7dea13d496 [USER32_APITEST] -Initial tests for desktop reference numbers.
svn path=/trunk/; revision=75153
2017-06-20 19:25:10 +00:00
Thomas Faber e7e6f2ec5f [NTOS:MM]
- In MiDeletePte, check the ReferenceCount of transition PTEs, not the ShareCount (which is actually u2.Blink, since the page is in a modified/standby list). Also don't reset the PageLocation, since MiDecrementReferenceCount expects it to be anything but ActiveAndValid.
Fixes physical page leaks when using DPH, or other code that sets PAGE_NOACCESS.
CORE-13311 #resolve

svn path=/trunk/; revision=75150
2017-06-20 15:51:47 +00:00
Hermès Bélusca-Maïto b17ce9c805 [NTDLL_APITEST]: Temporarily disable part of the NtLoad/UnloadKey test (related to force-unload a hive while some handles to subkeys are still opened), because this creates memory corruptions, due to the fact we currently don't perform force-unloads correctly.
CORE-13448

svn path=/trunk/; revision=75138
2017-06-19 19:50:49 +00:00
Mark Jansen 8f2f019415 [APPSHIM_APITEST] Addendum to r75041, add a missed line.
svn path=/trunk/; revision=75131
2017-06-19 15:24:05 +00:00
Colin Finck a82d7577b3 [PRINTING]
- Implement GetPrinterDataA, GetPrinterDataExA, GetPrinterDataExW, GetPrinterDataW, SetPrinterDataA, SetPrinterDataExA, SetPrinterDataExW, SetPrinterDataW.
  They support all features for Print Server and Printer Handles (minus security checks!)
  I've also added tests for them.
- Store Printer data in SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers instead of SYSTEM\CurrentControlSet\Control\Print\Printers and create a registry symlink from the former path to the new one just like Windows does.
  According to https://social.technet.microsoft.com/Forums/windowsserver/en-US/a683ab54-c43c-4ebe-af8f-1f7a65af2a51, this is needed when having >900 printers to work around a size limit of the SYSTEM registry hive. And if Windows has both locations, we need both for compatibility anyway.
- Add several settings which are queried by the new Printer Data APIs when working with Print Server Handles.
- Store the job directory in the Windows-compatible "DefaultSpoolDirectory" setting and make use of it.
- Revert the ASSERTs in LocalEnumPrinters again to let us verify the NULL pointer exceptions in localspl_apitest (thanks Serge! CORE-13433)
- Translate ERROR_INVALID_NAME to ERROR_INVALID_PRINTER_NAME in all cases in OpenPrinterW (thanks Victor! CORE-13412)
- Make EnumMonitorsW and EnumPortsW in spoolss more robust against failing Print Monitors.
- Remove the wrong !phPrinter check in OpenPrinterW to make Print Server Handles work for real.
- Fix error handling when memory allocation fails: HeapAlloc doesn't set last error, so it's just wrong to query or return it.

One more item done from https://reactos.org/wiki/Printing !
This is all still a big Work-in-Progress, with many subtle bugs deep down in ReactOS, for which I need to open additional tickets. But I didn't want to make this commit even bigger..

svn path=/trunk/; revision=75125
2017-06-19 14:18:19 +00:00
Thomas Faber 6bea3b076d [KMTESTS:MM]
- Test unaligned address and addresses close to MmHighestUserAddress in MmMapLockedPagesSpecifyCache test
CORE-13444

svn path=/trunk/; revision=75084
2017-06-18 08:00:29 +00:00
Thomas Faber d88cd4165d [PSDK]
- Properly add NTSTATUS code

svn path=/trunk/; revision=75081
2017-06-17 20:26:53 +00:00
Hermès Bélusca-Maïto 7f8dc7dfcc Just use REG_FORCE_UNLOAD since we're at it.
svn path=/trunk/; revision=75079
2017-06-17 20:13:17 +00:00
Hermès Bélusca-Maïto 9808e1ee19 [NTDLL_APITEST]: Add tests for NtLoadKey and NtUnloadKey.
CORE-13448

svn path=/trunk/; revision=75078
2017-06-17 20:08:48 +00:00
Thomas Faber 8c8f34f7fd [KMTESTS:MM]
- In the MmMapLockedPagesSpecifyCache test, try to allocate & free memory or unmap a section view in the mapped buffer space
CORE-13444

svn path=/trunk/; revision=75057
2017-06-16 11:06:33 +00:00
Mark Jansen 272bc3ef9f [APITEST] Move RedirectIat into it's own header so that it can be used from multiple tests.
svn path=/trunk/; revision=75041
2017-06-14 15:25:04 +00:00
Thomas Faber b5cdb03dd8 [DEVENUM_WINETEST]
- Fix return value check for IEnumMoniker_Next. Fixes crash when running the test without renderers installed (as is the case on ROS).
CORE-13421 #resolve

svn path=/trunk/; revision=75030
2017-06-14 06:44:39 +00:00
Thomas Faber 82284116fa [KMTESTS]
- Add test for hidparse's descriptor parsing
CORE-11538

svn path=/trunk/; revision=75017
2017-06-13 05:48:28 +00:00
Mark Jansen 3a302c5330 [APPHELP_APITEST] Addendum to r74986, make the test work on win7. CORE-13284
svn path=/trunk/; revision=75004
2017-06-11 13:09:43 +00:00
Mark Jansen b8ea78efa1 [WIN32NT_APITEST] Do not assert on a driver without DirectX support.
svn path=/trunk/; revision=75001
2017-06-11 11:47:41 +00:00
Mark Jansen 2366903f94 [COMCTL32_IMAGELIST] Prevent dereferencing a null pointer.
svn path=/trunk/; revision=74998
2017-06-11 11:08:32 +00:00
Mark Jansen 7583b2b298 [WIN32KNT_APITEST] Do not assert on the result of an unimplemented function.
svn path=/trunk/; revision=74996
2017-06-11 08:51:36 +00:00
Mark Jansen be0666cf16 [APPHELP_APITEST] Add tests for ApphelpCheckRunApp[Ex], SdbGetMatchingExe, Sdb[Un]PackAppCompatData. CORE-13284
svn path=/trunk/; revision=74986
2017-06-10 20:31:58 +00:00
Mark Jansen 1b27b462ec [SHLWAPI_APITEST] Add PathFindOnPath tests. Patch by Katayama Hirofumi MZ. ROSTESTS-283 #comment Thanks!
svn path=/trunk/; revision=74984
2017-06-10 19:41:31 +00:00
Mark Jansen d4db41b968 Addendum to r74982, remove some debugging code.
svn path=/trunk/; revision=74983
2017-06-10 17:47:56 +00:00
Mark Jansen 20cbe80c85 [SHELL32_APITEST] Add tests for PathResolve. Patch by Katayama Hirofumi MZ. CORE-12665 #comment Thanks!
svn path=/trunk/; revision=74982
2017-06-10 17:46:11 +00:00
Thomas Faber c16f5dc411 [USER32_WINETEST]
- Hackfix crash in user32:clipboard test due to NULL pointer returned from GetClipboardData.

svn path=/trunk/; revision=74974
2017-06-09 14:08:50 +00:00
Pierre Schweitzer 1ac1c1b261 [KMTESTS:MM]
When testing noncached mapping, use MmAllocateNonCachedMemory() as suggested by Thomas to avoid later potential failures

svn path=/trunk/; revision=74967
2017-06-08 20:16:34 +00:00
Hermès Bélusca-Maïto 7384a6a1d5 [GDI32_APITEST]: Fix the "missing braces around initializer" GCC error that I've introduced in r74962.
svn path=/trunk/; revision=74966
2017-06-08 19:09:01 +00:00
Hermès Bélusca-Maïto 349d9f652b [ADVAPI32_WINETEST]: Fix compilation with MSVC 2010 (guarded via __REACTOS__).
svn path=/trunk/; revision=74963
2017-06-08 17:04:24 +00:00
Hermès Bélusca-Maïto 72c5e65e8c [GDI32_APITEST]: Fix compilation under MSVC 2010.
svn path=/trunk/; revision=74962
2017-06-08 17:00:55 +00:00
Pierre Schweitzer 453fae7f31 [KMTESTS:MM]
Make MmMapLockedPagesSpecifyCache a bit more robust. Based on Thomas' suggestions

svn path=/trunk/; revision=74955
2017-06-08 06:44:48 +00:00
Mark Jansen 2252393eeb [KERNEL32_WINETEST] Kill process that hangs on an unimplemented feature.
svn path=/trunk/; revision=74947
2017-06-07 20:40:42 +00:00
Giannis Adamopoulos 759a452d44 [COMCTL32_APITEST] -Make comctl32v5.manifest really point to the v5 library.
svn path=/trunk/; revision=74929
2017-06-05 21:50:21 +00:00
Peter Hater d70eb21b6b [WINETESTS] Avoid canceling the test when Samba is not installed and NTLM authentication is tested
svn path=/trunk/; revision=74927
2017-06-05 19:27:50 +00:00
Giannis Adamopoulos 3767fcf5cc Fix gcc build.
svn path=/trunk/; revision=74924
2017-06-05 14:40:48 +00:00
Giannis Adamopoulos 0cfb73fce3 [COMCTL32_APITEST] -Add tests for CCM_GETVERSION and CCM_SETVERSION for the v5 and v6 toolbar control.
svn path=/trunk/; revision=74923
2017-06-05 14:25:37 +00:00
Hermès Bélusca-Maïto 93cfc03633 [SETUPAPI]: Fix a 9-year old bug in the SETUP_CreateClassKey() logic, introduced in r31860, that set a wrong Class name value if the corresponding registry key already existed. The bug was unveiled by my commit r74761.
[SETUPAPI_APITEST]: When selecting another test_class_guid and test_class_name couple via SetupDiClassNameFromGuidA(), check whether this function actually succeeds. Also, improve some error output.

svn path=/trunk/; revision=74916
2017-06-04 18:16:24 +00:00
Amine Khaldi 8fa7e9eda7 [ADVAPI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74911
2017-06-04 14:57:35 +00:00
Amine Khaldi 29d9f9eb31 [USER32_WINETEST] Sync with Wine Staging 2.9 except win.c. CORE-13362
svn path=/trunk/; revision=74909
2017-06-04 14:34:15 +00:00