Commit graph

2951 commits

Author SHA1 Message Date
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
Amine Khaldi e7bfd19443 [KERNEL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74908
2017-06-04 14:29:15 +00:00
Amine Khaldi 09cb26ed2e [RPCRT4_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74905
2017-06-04 14:02:01 +00:00
Amine Khaldi afc72d800f [COMCTL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74903
2017-06-04 12:53:30 +00:00
Amine Khaldi 92e558732b [UXTHEME_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74890
2017-06-04 01:52:19 +00:00
Amine Khaldi 3145e7c7c1 [SHELL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74889
2017-06-04 01:52:12 +00:00
Amine Khaldi fca7431a53 [SETUPAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74886
2017-06-04 01:51:43 +00:00
Amine Khaldi 6c88bfb14d [SERVICES_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74885
2017-06-04 01:51:25 +00:00
Amine Khaldi f0f266a71d [SECUR32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74884
2017-06-04 01:51:16 +00:00
Amine Khaldi 4a981826c1 [MSVCRT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74882
2017-06-04 01:50:58 +00:00
Amine Khaldi 05343d6328 [GDI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74881
2017-06-04 01:50:46 +00:00
Amine Khaldi ed4906ee50 [REG_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74880
2017-06-04 01:50:37 +00:00
Amine Khaldi 7bd43aa322 [WSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74879
2017-06-04 01:50:30 +00:00
Amine Khaldi 8f32e01d63 [WS2_32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74878
2017-06-04 01:50:24 +00:00
Amine Khaldi 3e7b57d242 [WINSPOOL_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74875
2017-06-04 01:50:00 +00:00
Amine Khaldi 8e8a5efa43 [WINMM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74874
2017-06-04 01:49:55 +00:00
Amine Khaldi 4c2c978917 [XMLLITE_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74873
2017-06-04 01:49:50 +00:00
Amine Khaldi 2464924026 [WININET_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74868
2017-06-04 01:49:09 +00:00
Amine Khaldi 25cdf28c16 [WINHTTP_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74865
2017-06-04 01:48:43 +00:00
Amine Khaldi 036e6ad687 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74863
2017-06-04 01:48:23 +00:00
Amine Khaldi 4e1fa50310 [WBEMDISP_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74858
2017-06-04 01:47:40 +00:00
Amine Khaldi d8eaddca44 [VERSION_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74856
2017-06-04 01:47:23 +00:00
Amine Khaldi 126ab550af [VBSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74854
2017-06-04 01:47:13 +00:00
Amine Khaldi 0a4d3b5257 [USP10_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74852
2017-06-04 01:47:02 +00:00
Amine Khaldi 83eaf4cbac [URLMON_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74850
2017-06-04 01:46:38 +00:00
Amine Khaldi f41d8818ce [SHLWAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74848
2017-06-03 22:40:14 +00:00
Amine Khaldi e80a0f88e0 [SCRRUN_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74846
2017-06-03 22:39:28 +00:00
Amine Khaldi 1866b31f5e [RSAENH_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74844
2017-06-03 22:38:34 +00:00
Amine Khaldi 3a2d3f54c7 [RICHED20_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74842
2017-06-03 22:37:05 +00:00
Amine Khaldi 35e1e225d6 [REGEDIT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74840
2017-06-03 22:36:19 +00:00
Amine Khaldi 4d8caff209 [QUARTZ_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74839
2017-06-03 22:36:05 +00:00
Amine Khaldi 8454158975 [PSAPI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74838
2017-06-03 22:35:45 +00:00
Amine Khaldi 16a6deef46 [PROPSYS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74837
2017-06-03 22:35:33 +00:00
Amine Khaldi 28c0ee0f60 [OPENGL32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74834
2017-06-03 22:34:42 +00:00
Amine Khaldi 2f788a0264 [OLEAUT32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74832
2017-06-03 22:34:23 +00:00
Amine Khaldi 82997f0e3b [OLE32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74830
2017-06-03 22:33:48 +00:00
Amine Khaldi 3152f3df52 [ODBCCP32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74828
2017-06-03 22:33:08 +00:00
Amine Khaldi df088c988e [NTPRINT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74825
2017-06-03 22:32:11 +00:00
Amine Khaldi 8890301a84 [NETAPI32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74824
2017-06-03 22:31:54 +00:00
Amine Khaldi fd26e762c0 [MSXML3_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74823
2017-06-03 22:31:39 +00:00
Amine Khaldi a99ab25ade [MSVFW32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74821
2017-06-03 22:30:54 +00:00
Amine Khaldi 7a5517640f [MSTASK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74820
2017-06-03 22:30:32 +00:00
Amine Khaldi 4988f293f8 [MSI_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74819
2017-06-03 22:30:19 +00:00
Amine Khaldi 04488bf33d [MSCTF_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74817
2017-06-03 22:29:38 +00:00
Amine Khaldi e798892743 [MPR_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74815
2017-06-03 22:29:16 +00:00
Amine Khaldi 9f53283069 [MLANG_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74814
2017-06-03 22:29:06 +00:00
Amine Khaldi dac59d58ed [JSCRIPT_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74812
2017-06-03 22:28:34 +00:00
Amine Khaldi 7a8fa2cc0e [IMM32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74810
2017-06-03 22:28:03 +00:00
Amine Khaldi 60751dbf95 [INETCOMM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74809
2017-06-03 22:27:55 +00:00
Amine Khaldi 20b08209f8 [GDIPLUS_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74796
2017-06-03 19:01:59 +00:00
Amine Khaldi 4f1f6bb03e [CRYPT32_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74790
2017-06-03 18:37:38 +00:00
Amine Khaldi fb184b034d [CABINET_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74788
2017-06-03 18:37:22 +00:00
Amine Khaldi 59ae921bd1 [AMSTREAM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74786
2017-06-03 18:37:13 +00:00
Amine Khaldi 02b8adbe36 [ADVPACK_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74784
2017-06-03 18:37:03 +00:00
Amine Khaldi 61e603ee5a [DPLAYX_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74779
2017-06-03 18:06:05 +00:00
Amine Khaldi e1aaa10312 [DEVENUM_WINETEST] Sync with Wine Staging 2.9. CORE-13362
svn path=/trunk/; revision=74775
2017-06-03 17:29:09 +00:00
Pierre Schweitzer 63eb4b623a [KMTESTS:MM]
Test various sizes with MmMapLockedPagesSpecifyCache() to show that behavior is strictly identical.
This was designed/tested under W2K3.

CORE-8204

svn path=/trunk/; revision=74759
2017-06-03 10:29:39 +00:00
Thomas Faber 440e3c69e4 [KERNEL32_APITEST]
- Add tests for IsDBCSLeadByteEx. Patch by Katayama Hirofumi MZ.
ROSTESTS-281 #resolve

svn path=/trunk/; revision=74758
2017-06-03 07:05:31 +00:00
Pierre Schweitzer 8679f001d9 [KMTESTS:MM]
Add tests for MmMapLockedPagesSpecifyCache() functions, and more specifically for usermode mapping.
This was designed/tested under W2K3.

CORE-8204

svn path=/trunk/; revision=74751
2017-06-02 19:19:32 +00:00
Mark Jansen 9a54d4a3a0 [KERNEL32_APITEST] Add test to show that we should not spoil TEB->StaticUnicodeString in CreateProcessA. CORE-10368
svn path=/trunk/; revision=74701
2017-05-30 20:55:15 +00:00
Mark Jansen 440290e1cb [USER32_APITEST] Add more tests to validate messages sent during window creation / modifying of styles. CORE-12052
svn path=/trunk/; revision=74691
2017-05-28 17:40:48 +00:00
Mark Jansen 9386daa570 [USER32_APITEST] Add tests to validate messages sent during window creation / modifying of styles. CORE-12052
svn path=/trunk/; revision=74689
2017-05-28 13:55:05 +00:00
Peter Hater 1c9d856e91 [WS2_32_APITESTS] Add close tests ROSTESTS-279
svn path=/trunk/; revision=74672
2017-05-26 14:02:25 +00:00
Peter Hater a6a53b4231 [WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
svn path=/trunk/; revision=74671
2017-05-26 14:00:47 +00:00
Peter Hater a09e47fe40 [WS2_32_APITESTS] Fix broadcast test ROSTESTS-278
svn path=/trunk/; revision=74667
2017-05-26 10:31:50 +00:00
Peter Hater 92ccd9c174 [WS2_32_APITESTS] Add rebind and bind to broadcast tests ROSTESTS-278
svn path=/trunk/; revision=74666
2017-05-26 09:02:08 +00:00
Peter Hater b2ba90c6b5 [WS2_32_APITESTS] Fix GCC build ROSTESTS-278
svn path=/trunk/; revision=74664
2017-05-26 07:11:13 +00:00
Peter Hater 4214877a10 [WS2_32_APITESTS] Improve bind test output ROSTESTS-278
svn path=/trunk/; revision=74663
2017-05-26 07:08:06 +00:00
Peter Hater 27fe85a2cb [WS2_32_APITESTS] Set the size of addr when calling getsockname ROSTESTS-278
svn path=/trunk/; revision=74655
2017-05-25 15:57:38 +00:00