Commit graph

932 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto 5db91c84a0 Comply to GCCLin rules.
svn path=/trunk/; revision=73561
2017-01-16 16:35:01 +00:00
Hermès Bélusca-Maïto 5ccf3c01a4 [SHELL32_APITEST]: Add some tests for GetIconLocation. Show also that CShellLink inherits from IExtractIcon(A/W).
svn path=/trunk/; revision=73560
2017-01-16 16:22:40 +00:00
Hermès Bélusca-Maïto a6b1351921 [SHELL32_APITEST]
- Fix the names of some expected return values get from the APIs;
- Move a bit the TestShellLink() function.
- When displaying hexadecimal, prepend the "0x" string (otherwise, when you see: "hr = 10", is it 10 in decimal or in hex??)
- Call CoUninitialize() at the end of the tests.

svn path=/trunk/; revision=73559
2017-01-16 16:17:59 +00:00
Giannis Adamopoulos e4ffdbb8a7 [NTDLL_APITEST] -Create a copy of the test in testdata and add along three empty files: ntdll_apitest.exe.local, shell32.dll and test.dll. Make the test start the subprocess from testdata to avoid any kind of interference of the .local to all the other tests. The empty dlls are needed there because there is no way to rename the files while adding them to the cab file like we do with NAME_ON_CD and creating them at runtime is not reliable as caching can cause random failures.
svn path=/trunk/; revision=73554
2017-01-15 11:51:06 +00:00
Giannis Adamopoulos f2d49d7a05 Fix a line that I forgot to finish editing.
svn path=/trunk/; revision=73552
2017-01-15 00:49:47 +00:00
Giannis Adamopoulos 1442edd291 [NTDLL_APITEST]
- Add more tests for RtlDosApplyFileIsolationRedirection_Ustr. Unfortunately creating .local files and making it have instant effect seems to be impossible. So I added tests for .local than can be enabled to show that this is indeed the behaviour but I have disabled them to avoid random failed tests.

svn path=/trunk/; revision=73551
2017-01-15 00:42:10 +00:00
Mark Jansen 523a1a5589 SHLWAPI_APITEST: Add tests for StrFormatByteSizeW. Patch by Doug Lyons. CORE-12661 #resolve
svn path=/trunk/; revision=73549
2017-01-15 00:04:16 +00:00
Hermès Bélusca-Maïto 736b7b86f6 [SHLWAPI_APITEST]: Use the 'add_rostests_file' command from Colin ;)
svn path=/trunk/; revision=73545
2017-01-13 22:12:22 +00:00
Hermès Bélusca-Maïto cd7c1882ed [SHLWAPI_APITEST]
- Add tests for PathIsUNCServer and PathIsUNCServerShare, by Jared Smudde. Thanks! ROSTESTS-258 #resolve
- Simplify the code: Since those functions (as well as PathIsUNC) are public and exported by name, we can directly load the apitest with shlwapi and call the APIs directly (no need for explicit LoadLibrary & GetProcAddress).

svn path=/trunk/; revision=73544
2017-01-13 21:55:25 +00:00
Hermès Bélusca-Maïto a11a51af76 FTSU GCCLin.
svn path=/trunk/; revision=73542
2017-01-13 19:09:11 +00:00
Hermès Bélusca-Maïto 7f0502d36e [SHELL32_APITEST]: Improve a bit the output of the CShellLink test.
svn path=/trunk/; revision=73541
2017-01-13 19:00:33 +00:00
Colin Finck 4536560a1d [LOCALSPL_APITEST]
Disable fpGetPrintProcessorDirectory tests that use PSEH.
For some reason, they can only be run once and corrupt something inside spoolsv, so that spoolsv needs to be restarted afterwards.

svn path=/trunk/; revision=73539
2017-01-13 16:15:13 +00:00
Giannis Adamopoulos 12796f8786 [KERNEL32_APITEST] - Add tests for LoadLibraryExW to test its ability to load a redirected dll. Do not include it in the build until a way is found for it to be compiled properly.
svn path=/trunk/; revision=73538
2017-01-13 15:33:38 +00:00
Hermès Bélusca-Maïto a20fc53659 [SHLWAPI_APITEST]: Commit few tests for PathUnExpandEnvStrings.
svn path=/trunk/; revision=73536
2017-01-13 14:51:25 +00:00
Colin Finck da200b3a2c [ROSTESTS]
- Add a function "add_rostests_file" that calls both add_cd_file() and install() accordingly for regression tests.
  Use this function everywhere in rostests where add_cd_file() was used previously. This puts tests always in the right place on CD and also generates proper installation rules for them.
- Add a custom target "rostests_install" that performs an "install" on all rostests components.

This finally gives us a convenient and reliable way to copy all regression tests and their dependencies into a single directory (specified by the ROSTESTS_INSTALL environment variable).
Will be used on the WHS-Testbot to let it finally run each and every test.

CORE-12401
ONLINE-441

svn path=/trunk/; revision=73533
2017-01-13 09:24:15 +00:00
Hermès Bélusca-Maïto 633f34d7c4 Use wine_dbgstr_w as Jared did originally (I hate this macro because it displays strings in 'C'-language form instead of in natural way).
svn path=/trunk/; revision=73531
2017-01-13 00:33:46 +00:00
Hermès Bélusca-Maïto ee9c290085 /me slaps GCCLin.
svn path=/trunk/; revision=73530
2017-01-13 00:20:50 +00:00
Hermès Bélusca-Maïto 58c3357ad1 Make GCC happy.
svn path=/trunk/; revision=73528
2017-01-13 00:13:38 +00:00
Hermès Bélusca-Maïto c785b8f077 [SHLWAPI_APITEST]: New test for PathIsUNC function, by Jared Smudde. Thanks!
ROSTESTS-256 #resolve

svn path=/trunk/; revision=73527
2017-01-13 00:06:12 +00:00
Giannis Adamopoulos 6fc550ad47 [NTDLL] -Add preliminary tests for RtlDosApplyFileIsolationRedirection_Ustr.
svn path=/trunk/; revision=73526
2017-01-12 11:21:04 +00:00
Giannis Adamopoulos 6d0f733ac7 [KERNEL32_APITEST] - Use the full path to the manifest files when testing FindActCtxSectionStringW. This is needed because in most cases they are not in the current directory.
svn path=/trunk/; revision=73509
2017-01-06 22:06:53 +00:00
Giannis Adamopoulos 9624a5e18b [KERNEL32_APITEST] -Keep improving the skip checks.
svn path=/trunk/; revision=73508
2017-01-06 21:25:53 +00:00
Giannis Adamopoulos 7475839d64 [KERNEL32_APITEST] - Skip more stuff hoping to fix a crash that I can't reproduce locally.
svn path=/trunk/; revision=73507
2017-01-06 21:13:46 +00:00
Giannis Adamopoulos c2c4d46671 [KERNEL32_APITEST] -Add some more checks to avoid a crash (the ones I originally added were not enough).
svn path=/trunk/; revision=73506
2017-01-06 20:43:58 +00:00
Giannis Adamopoulos 2bebddf5ee [KERNEL32_APITEST] -Add tests for FindActCtxSectionStringW.
svn path=/trunk/; revision=73505
2017-01-06 18:48:15 +00:00
James Tabor 833738127d [User32_API]
- Patch by Katayama Hirofumi MZ : Add a test for Next Dialog Item for radio buttons.

svn path=/trunk/; revision=73468
2016-12-19 16:28:42 +00:00
Mark Jansen f1167250a0 [ATL][ATL_APITEST] Add GetEnvironmentVariable to CString. CORE-12581
svn path=/trunk/; revision=73465
2016-12-17 19:38:08 +00:00
Hermès Bélusca-Maïto a54d1167e4 [APITESTS]: Add a test for userenv.dll API Load/UnloadUserProfile.
CORE-12541

svn path=/trunk/; revision=73458
2016-12-15 18:44:47 +00:00
Mark Jansen 3180d93edf [APPSHIM_APITEST] Update display mode shim tests to show some difference in versions + add extra tests. CORE-11927
svn path=/trunk/; revision=73453
2016-12-14 19:19:57 +00:00
Hermès Bélusca-Maïto c5e734fdd8 Fix for source code file header, sorry for commit noise.
svn path=/trunk/; revision=73432
2016-12-05 16:38:11 +00:00
Hermès Bélusca-Maïto aadba539ce [ADVAPI32_APITEST]: Test for a (correctly initialized) service process environment block, that should contain both ALLUSERSPROFILE and USERPROFILE environment variables.
CORE-12414

svn path=/trunk/; revision=73431
2016-12-05 16:36:06 +00:00
Hermès Bélusca-Maïto 8e18f1fbd9 [ADVAPI32_APITEST]: Add a small helper lib 'svchlp' for common routines for test-services embedded in api tests. Taken & heavily adapted from Jacek Caban's services_service test and Thomas Faber's ServiceArgs.c (the latter will be able to use 'svchlp' when it'll be ready).
CORE-12414

svn path=/trunk/; revision=73430
2016-12-05 16:22:30 +00:00
Hermès Bélusca-Maïto 23e508dc18 [ADVAPI32_APITEST]: Rename the 'LockDatabase' test to 'LockServiceDatabase' to better match the name of the API.
svn path=/trunk/; revision=73426
2016-12-04 18:41:46 +00:00
Mark Jansen f0d4850705 [APPSHIM_APITEST] Add tests for the DisableThemes shim. CORE-11927
svn path=/trunk/; revision=73422
2016-12-04 15:33:28 +00:00
Mark Jansen d39ff22033 [APPSHIM_APITEST] Add tests for display mode shims. CORE-11927
svn path=/trunk/; revision=73421
2016-12-03 21:24:47 +00:00
Hermès Bélusca-Maïto 0d21c76ef1 [ROSTESTS]: advapi32_apitest: Add a test to extensively test services command-line arguments. By Thomas Faber.
[ADVAPI32]: Correctly set up both the ANSI and UNICODE service command-line arguments. Adapted from a patch by Thomas Faber. Thanks!

[SERVICES]
- Correctly pack the service command-line arguments in the control packet structure. In particular, the offsets stored in the vector are relative to the beginning of the vector (and not relative to the previous offset ^^). Improve comments...
- Fix the definition of the SCM_CONTROL_PACKET control packet structure to make it Win2k3-compatible, so that we can use Win2k3' advapi32.dll or services.exe on ReactOS and vice-versa.

CORE-9235 CORE-9838

svn path=/trunk/; revision=73413
2016-12-02 20:01:29 +00:00
Mark Jansen 7b0c55ea0c This does not belong here.
svn path=/trunk/; revision=73410
2016-11-30 20:39:06 +00:00
Mark Jansen 0744770ebe [NETSHELL] Implement NcIsValidConnectionName + tests. Patch by Jared Smudde, modified by me. CORE-11320 #resolve
svn path=/trunk/; revision=73409
2016-11-30 20:31:50 +00:00
Giannis Adamopoulos aab0fd5e9d [SHELL32_APITEST] -Test if CFSFolder::GetUIObjectOf can return an IDataObject for 0 cidl.
svn path=/trunk/; revision=73404
2016-11-29 13:27:21 +00:00
Mark Jansen 26627a49b0 [APPHELP][APPHELP_APITEST] Stub ApphelpCheckShellObject + add tests, based on the work of Mislav Blažević. CORE-12476
svn path=/trunk/; revision=73398
2016-11-27 18:33:21 +00:00
Colin Finck 65212f3682 [LOCALSPL]
Tests show that the Print Provider functions are less forgiving and expect winspool.drv and spoolss.dll to perform the necessary sanity checks.
Also they don't default to the current environment if none was supplied as pEnvironment. Change our functions accordingly to pass the tests.

[LOCALSPL_APITEST]
Add a test to prove that spoolss.dll isn't just a forwarder, but also performs some sanity checks even though winspool.drv and localspl.dll also do.
This rather belongs to spoolss_apitest. But it needs to be tested inside the Spooler Server Process and it's not worth it to copy all the DLL injection code to spoolss_apitest just for a single test.

[SPOOLSS]
Check for an invalid buffer in GetPrintProcessorDirectoryW.

[WINSPOOL]
* Check the level before the RPC call in GetPrintProcessorDirectoryW.
* Supply our current environment if the caller didn't give any in EnumPrintProcessorsW and GetPrintProcessorDirectoryW.
* Implement GetPrintProcessorDirectoryA.

[WINSPOOL_APITEST]
Prove that pcbNeeded isn't touched when calling GetPrintProcessorDirectoryW with an invalid level.


ReactOS now passes all API tests for GetPrintProcessorDirectoryA and GetPrintProcessorDirectoryW. These tests also cover all known behaviors of both functions.
CORE-12399

svn path=/trunk/; revision=73373
2016-11-24 19:24:27 +00:00
Colin Finck aa84b232e5 [LOCALSPL_APITEST]
Add a test for fpGetPrintProcessorDirectory, the actual worker function inside localspl.dll at the end of the call chain.
With that final test, we should have enough information to implement 100% compatible versions of GetPrintProcessorDirectoryA/W and fpGetPrintProcessorDirectory.

[WINSPOOL_APITEST]
Initialize some more variables with bogus values to verify that they have actually changed.

Next step for CORE-12399

svn path=/trunk/; revision=73264
2016-11-17 22:23:28 +00:00
Colin Finck e12ad8d673 [WINSPOOL_APITEST]
GetPrintProcessorDirectory.c: fix 4 error messages (s/cbNeeded/cbTemp/).
By Serge Gautherie

svn path=/trunk/; revision=73248
2016-11-17 21:30:45 +00:00
Colin Finck 5fd4223870 [WINPRINT_APITEST]
Load all functions to test dynamically from either winprint.dll in the Print Processor Directory (for ReactOS and NT6) or localspl.dll in the system path (for NT5).
Should fix winprint_apitest on ReactOS and Windows Server 2003.

svn path=/trunk/; revision=73247
2016-11-17 21:24:07 +00:00
Amine Khaldi bdf445d754 [WLANAPI_APITEST] Bring these tests back home.
svn path=/trunk/; revision=73242
2016-11-17 13:46:36 +00:00
Colin Finck e53a72c351 [LOCALSPL_APITEST]
Fix some NULL vs. INVALID_HANDLE_VALUE checks.
Now localspl_apitest.exe should properly quit when it cannot find its DLL.

svn path=/trunk/; revision=73239
2016-11-16 14:59:01 +00:00
Colin Finck 8f3b3eb6e2 [WINSPOOL_APITEST]
Add tests for GetPrintProcessorDirectoryA and another one for GetPrintProcessorDirectoryW.
Tested against Windows Server 2003 SP2.

Step 1 for CORE-12399

svn path=/trunk/; revision=73238
2016-11-16 08:54:54 +00:00
Giannis Adamopoulos 4a5fe31949 [SHELL32_APITEST] - Add a test for CShellDesktop to show what breaks the select folder dialog.
svn path=/trunk/; revision=73235
2016-11-15 14:08:57 +00:00
Mark Jansen 1a9744d406 [ADVAPI32][ADVAPI32_APITEST] Fix incorrect parameter output uncovered by CORE-12333 #comment Please retest!
svn path=/trunk/; revision=73228
2016-11-13 18:11:14 +00:00
Thomas Faber c2b131e793 [WS2_32_APITEST]
- Skip nonblocking tests since they hang on testbot
ROSTESTS-247

svn path=/trunk/; revision=73225
2016-11-13 14:54:06 +00:00
Giannis Adamopoulos 8c25d803dd [SHELL32_APITEST] -Test the IPersistFolder3 interface of CFSFolder.
svn path=/trunk/; revision=73213
2016-11-12 15:38:33 +00:00
Giannis Adamopoulos f563a3856b [SHELL32_APITEST]
- Add tests for the Initialize method for CDesktopFolder and CDrivesFolder.
- Add tests for CFSFolder to see how it behaves whhile not initialized.

svn path=/trunk/; revision=73212
2016-11-12 14:54:12 +00:00
Thomas Faber 790c388fd1 [SHELL32_APITEST]
- Don't compare a pointer to S_OK
CORE-11794

svn path=/trunk/; revision=73210
2016-11-12 12:43:02 +00:00
Peter Hater 373bee1800 [WS2_32_APITESTS] Add nonblocking tests
svn path=/trunk/; revision=73195
2016-11-10 15:13:19 +00:00
Peter Hater ec87a34342 [WS2_32_APITESTS] Add more WSAAsync tests
svn path=/trunk/; revision=73194
2016-11-10 15:00:44 +00:00
Peter Hater b3bee8c862 [WS2_32_APITEST] Use test.winehq.org insteadof reactos.org. These days main reactos page is too big.
svn path=/trunk/; revision=73193
2016-11-10 14:23:49 +00:00
Thomas Faber ac5bba8ea8 [NTDLL_APITEST]
- Add tests for RtlIsNameLegalDOS8Dot3 and RtlUpcaseUnicodeStringToCountedOemString with the ® sign.
CORE-8617

svn path=/trunk/; revision=73190
2016-11-10 10:18:25 +00:00
Mark Jansen f6c36fb82e and of course also rename the test itself...
svn path=/trunk/; revision=73186
2016-11-09 23:23:50 +00:00
Mark Jansen cae3a4455e Rename shlexec.cpp to ShellExecuteEx.cpp as suggested by Thomas.
svn path=/trunk/; revision=73185
2016-11-09 23:18:23 +00:00
Mark Jansen c707b2d936 addendum to r73180 (aka, fix the build)
svn path=/trunk/; revision=73183
2016-11-09 22:24:42 +00:00
Mark Jansen 353c67c0d4 [SHELL32_APITEST] Add some tests for ShellExecuteEx showing extension completion with the App Paths registry key. Patch by Yaroslav Veremenko. CORE-12049
svn path=/trunk/; revision=73180
2016-11-09 22:13:26 +00:00
Giannis Adamopoulos ce0d9e3727 [COM_APITEST]
- The new interfaces are not registered in the registry
- Add a few interfaces that were discovered for CLSID_Printers and CLSID_QueryAssociations.

svn path=/trunk/; revision=73156
2016-11-06 18:04:58 +00:00
Giannis Adamopoulos d0aa105b59 [COM_APITEST]
- Test for the undocumented interfaces that were added recently.

svn path=/trunk/; revision=73155
2016-11-06 17:17:57 +00:00
Mark Jansen 5cccca79c2 [ADVAPI32_APITEST] Add tests for RegQueryValueExW. Patch by Victor Martinez Calvo. ROSTESTS-171 #resolve #comment Thanks!
svn path=/trunk/; revision=73142
2016-11-05 17:43:24 +00:00
Giannis Adamopoulos 3430268b90 [SHELL32_APITEST]
- Add extensive tests for SHParseDisplayName. I tried to add as many as possible  but this list of tests is still incomplete. In the meantime I discovered interesting stuff like the "shell:system" path which if you enter in the run dialog will open the system32 folder. I tried to test parsing protocols like ftp paths but couldn't find wht it should look like yet. Afaik all protocol except for the shell protocol like the one mentioned before should be parsed by CInternet class as noted in the appropriate comment in the tests.

svn path=/trunk/; revision=73121
2016-11-04 17:31:53 +00:00
Mark Jansen 22ba0b5aa5 [APPHELP][APPHELP_APITEST] Update db apitests to succeed from 2k3 to 10, paving the way for the next set of tests.
- Support 2k3 and Vista+ versions of the SDBQUERYRESULT structure.
- Add tests for SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Implement SdbFindFirstNamedTag, SdbTagIDToTagRef, SdbGetLayerTagRef
- Add a version resource to apphelp, so that we can use it to identify which tests to use.

svn path=/trunk/; revision=73083
2016-10-30 19:39:43 +00:00
Thomas Faber a51ac2be8c [NTDLL_APITEST]
- Add a test for NtReadFile, also covering buffer size too large for an MDL
CORE-12132

svn path=/trunk/; revision=73071
2016-10-29 20:14:16 +00:00
Thomas Faber 8d77737ce9 [NTDLL_APITEST]
- Add tests for NtWriteFile with buffer sizes larger than an MDL can describe.
CORE-12132

svn path=/trunk/; revision=73059
2016-10-29 11:39:07 +00:00
Peter Hater b21dc336da Fix build
svn path=/trunk/; revision=73053
2016-10-28 07:11:20 +00:00
Peter Hater c05f8b29ef [WS2_32_APITESTS] Add tests for WSAAsync original by Miroslav Mastný. Converted to api test by me.
CORE-12152 #resolve #comment Thanks

svn path=/trunk/; revision=73052
2016-10-28 07:01:16 +00:00
Colin Finck fcaeb4d6a4 [PRINTING]
Finally merge my branch "colins-printing-for-freedom", giving us an initial implementation of a Win32-compatible Printing Stack (localmon, localspl, spoolss, spoolsv, winspool)
You can now send raw data to parallel port printers using documented Win32 API. An example application is in my "winspool_print" commandline tool merged to rosapps.
ReactOS folks, thanks for your support during the development of this, making my bachelor's thesis a reality! :)

Documentation/Thesis: https://svn.reactos.org/reactos/trunk/documentation/articles/Printing%20Stack%20Thesis/thesis.pdf
Video: https://www.youtube.com/watch?v=cNzePucTOLY

CORE-10489

svn path=/trunk/; revision=73039
2016-10-26 12:37:27 +00:00
Hermès Bélusca-Maïto 6357011e41 [ADVAPI32_APITEST]: I wasn't alone for writing these tests!
svn path=/trunk/; revision=73015
2016-10-21 21:08:54 +00:00
Peter Hater 08744dfc42 [WS2_32_APITESTS] Add tests for SIO_GET_INTERFACE_LIST. Brought to you by Andreas Maier. Thanks.
Minor modifications by me on comparison and expected flags.
ROSTESTS-246

svn path=/trunk/; revision=73011
2016-10-21 16:47:38 +00:00
Mark Jansen a62945fc94 [APPHELP_APITEST] This should not be here.
svn path=/trunk/; revision=73002
2016-10-20 21:03:38 +00:00
Hermès Bélusca-Maïto 0508cc702d [KERNEL32_APITEST]: SetConsoleWindowInfo test:
- Improve the checks done for the tests;
- Add a new test (Test7) that tests the allowed console window sizes wrt. the csbi.dwMaximumWindowSize size.

svn path=/trunk/; revision=72985
2016-10-18 17:44:23 +00:00
Hermès Bélusca-Maïto 916943b1c4 [KERNEL32_APITEST]: Imprrove the SetConsoleWindowInfo test (add a new test case, and now correctly restores the console size after all the tests are done).
svn path=/trunk/; revision=72982
2016-10-18 16:08:34 +00:00
Hermès Bélusca-Maïto ae221a8274 [KERNEL32_APITEST]: Commit a test for SetConsoleWindowInfo.
svn path=/trunk/; revision=72981
2016-10-18 15:35:06 +00:00
Mark Jansen ee50a9c889 [ATL][ATL_APITEST] Implementation / fixes for varions CRegKey functions, by Katayama Hirofumi MZ. CORE-11746 #resolve
svn path=/trunk/; revision=72977
2016-10-17 12:50:54 +00:00
Thomas Faber 0d36dcef60 [NTDLL_APITEST]
- Show that NtOpenKey and NtCreateKey accept, but ignore, KEY_WOW64_32KEY and KEY_WOW64_64KEY
CORE-9691

svn path=/trunk/; revision=72974
2016-10-15 18:33:21 +00:00
Peter Hater a0257c8b37 [WS2_32_APITESTS] Add super simple WSARecv tests used to test WSAGetOverlappedResult. ROSTESTS-197
svn path=/trunk/; revision=72957
2016-10-11 10:48:47 +00:00
Peter Hater 9017581a14 [WS2_32_APITESTS] Fix helper by not shutting down send. This way it breaks the test on windows also.
svn path=/trunk/; revision=72949
2016-10-10 06:48:56 +00:00
Amine Khaldi c3b215936d [WS2_32_APITEST] Add tests for getnameinfo. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72908
2016-10-05 09:33:03 +00:00
Thomas Faber bf8b336ec9 [USER32_APITEST]
- Fix build

svn path=/trunk/; revision=72901
2016-10-04 15:37:25 +00:00
Thomas Faber 0a783e0ff3 [USER32_APITEST]
- Extend GetUserObjectInformation tests by adding tests for UOI_NAME on the default as well as custom window stations/desktops.
CORE-12073

svn path=/trunk/; revision=72900
2016-10-04 15:14:30 +00:00
Thomas Faber 3a5e3ae774 [ADVAPI32_APITEST]
- Add a test for RegEnumKeyExW showing that it should return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW when the name buffer is too small. Based on a patch by Doug Lyons.
CORE-12030

svn path=/trunk/; revision=72876
2016-10-01 14:41:41 +00:00
Amine Khaldi 8e21414853 [DNSAPI_APITEST] Add more tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72868
2016-09-30 15:23:25 +00:00
Amine Khaldi c27310bf96 [KERNEL32_APITEST] Add tests that reveal how the GetComputerNameEx fix in r72722 was not proper. By Peter Hater. ROSTESTS-243
svn path=/trunk/; revision=72849
2016-09-29 09:44:57 +00:00
Amine Khaldi d0e5925de2 [IPHLPAPI_APITEST] Add some tests for GetNetworkParams. By Peter Hater. ROSTESTS-244
svn path=/trunk/; revision=72836
2016-09-28 14:27:48 +00:00
Mark Jansen 105f70b1fe [ATL_APITEST] Remove dependency on rpcrt4. CORE-10029
svn path=/trunk/; revision=72830
2016-09-27 18:20:20 +00:00
Amine Khaldi 2735832354 [DNSAPI_APITEST] Add some tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72829
2016-09-27 18:00:03 +00:00
Thomas Faber 16b33b45ab [ATL_APITEST]
- Fix MSVC build

svn path=/trunk/; revision=72827
2016-09-27 16:51:39 +00:00
Mark Jansen ed8515d7ed [ATL][ATL_APITEST] Implement some basic functionality for CComVariant + tests. CORE-12041
Also adds Detach() to CComBSTR.

svn path=/trunk/; revision=72820
2016-09-26 20:50:36 +00:00
Benedikt Freisen dcea2a97b2 [ATL][ROSTESTS] Tests for: CImage: Add GetImporterFilterString and GetExporterFilterString. Patch by Katayama Hirofumi MZ, CORE-10029
svn path=/trunk/; revision=72818
2016-09-26 19:15:40 +00:00
Thomas Faber 8abd9a0386 [KERNEL32_APITEST]
- Add a test for WideCharToMultiByte with CP_UTF8
CORE-12042

svn path=/trunk/; revision=72809
2016-09-26 10:06:55 +00:00
Dmitry Chapyshev 92e7c0979a [NTDLL_APITEST] Add test for invalid pointer
svn path=/trunk/; revision=72801
2016-09-25 16:57:55 +00:00
Mark Jansen 6ee0488c6d [CRT_APITEST] Add tests for __getmainargs, testing a commandline ending with spaces. Patch by Yaroslav Veremenko CORE-9199
svn path=/trunk/; revision=72762
2016-09-21 19:26:47 +00:00
Mark Jansen af4f582986 [ATL_APITEST] Update CImage apitest to be in line with the CSimpleArray / CSimpleMap tests. Patch from Katayama Hirofumi MZ. CORE-11946 #resolve #comment Thanks!
svn path=/trunk/; revision=72689
2016-09-15 19:42:45 +00:00
Mark Jansen 639a2c725d [ATL][ATL_APITEST] Implemente CSimpleArray + CSimpleMap. Based on a patch from Katayama Hirofumi MZ. CORE-11946
Most of the code is from Katayama Hirofumi MZ, the placement new / delete is written by me, based on a hint from Giannis.

svn path=/trunk/; revision=72688
2016-09-15 19:41:03 +00:00
Pierre Schweitzer 7d2b56ccb0 [NTDLL_APITEST]
RtlGenerate8dot3Name: show that we don't deal correctly with checksums while generating short names.

Dedicated to Christoph

svn path=/trunk/; revision=72666
2016-09-13 09:57:52 +00:00
Dmitry Chapyshev 5e9b9699a6 [USER32_APITEST] Add tests for EnumDisplaySettingsA
svn path=/trunk/; revision=72658
2016-09-11 19:50:16 +00:00
Dmitry Chapyshev 5d2a362dda [WIN32KNT_APITEST] Add some tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS. It is checked in win2k3
svn path=/trunk/; revision=72647
2016-09-10 18:36:56 +00:00
Dmitry Chapyshev 3776d19ec9 [WIN32KNT_APITEST]
- Remove wrong tests. Win2k3 ignores the size of structure for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS

[NtUser]
- Remove wrong checks

svn path=/trunk/; revision=72645
2016-09-10 16:17:35 +00:00
Dmitry Chapyshev 3d5e037772 [WIN32KNT_APITEST]
- Fix copypasta

[NTUSER]
- User's buffer has to be checked before check of size parameters, differently we cannot safely check the sizes of structures

svn path=/trunk/; revision=72636
2016-09-09 20:44:34 +00:00
Dmitry Chapyshev 5b62af8967 [WIN32NT_APITEST]
- Add some tests for NtUserSystemParametersInfo

svn path=/trunk/; revision=72635
2016-09-09 20:27:31 +00:00
Mark Jansen e61bc91d97 [APPHELP][APPHELP_APITEST] Partially implement SdbGetMatchingExe, SdbInitDatabase and SdbTagRefToTagID. CORE-10367
- SdbGetMatchingExe, SdbInitDatabase partial implementation by Mislav Blažević
- Tests by me, they pass on vista - win10. (Win2k3 has another struct layout)
- Move shared test functions to a common header
- SdbTagRefToTagID misses functionality related to multiple databases, but that is not supported anywhere yet.

svn path=/trunk/; revision=72549
2016-09-03 16:20:52 +00:00
Mark Jansen 1dd7857278 [APPHELP][APPHELP_APITEST] Partially implement SdbMakeIndexKeyFromString
svn path=/trunk/; revision=72503
2016-08-29 15:19:55 +00:00
Dmitry Chapyshev 85d39f7ebe [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_DBCS_LEADBYTE flag

[SDK]
- Add missed IS_TEXT_UNICODE_DBCS_LEADBYTE definition

svn path=/trunk/; revision=72487
2016-08-28 15:59:29 +00:00
Dmitry Chapyshev af19896deb [RTL]
- Implement IS_TEXT_UNICODE_ILLEGAL_CHARS and IS_TEXT_UNICODE_ASCII16 flags

* It fixes 7 tests for the IsTextUnicode function in advapi32_apitest. All tests passed now

svn path=/trunk/; revision=72486
2016-08-28 11:05:01 +00:00
Dmitry Chapyshev c49c7bb373 [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_ILLEGAL_CHARS flag (not passed on ReactOS)

svn path=/trunk/; revision=72484
2016-08-28 10:42:32 +00:00
Jérôme Gardou 9726a48493 [NTDLL_APITEST]
- Add some tests which show how Windows handles the ZeroBits argument

svn path=/trunk/; revision=72468
2016-08-26 21:08:24 +00:00
Mark Jansen f156a8d727 [WIN32NT_APITEST] Add additional tests for NtUserCreateWindowEx by Sylvain Deverre. ROSTESTS-237 #resolve #comment Thanks!
svn path=/trunk/; revision=72400
2016-08-20 16:58:20 +00:00
Mark Jansen 6db0c12e85 [ATL][ATL_APITEST] Add CImage initial implementation + tests, by Katayama Hirofumi MZ. CORE-10029 #comment Thanks, first iteration committed!
- Tests focus mainly on loading + saving images.
- The implementation is not perfect yet, see CImage_WIP.txt for test results.
- The GDI+ functions should be fixed before this test can pass fully, MS' ATL fails in ReactOS, but passes on Windows.

svn path=/trunk/; revision=72332
2016-08-18 19:27:49 +00:00
Amine Khaldi 80afa82c59 [WIN32NT_APITEST] Add some NtUserCreateWindowEx tests by Sylvain Deverre. ROSTESTS-237
svn path=/trunk/; revision=72242
2016-08-17 17:53:11 +00:00
Mark Jansen caa5c5b12d [CRT][CRT_APITEST] Fix __getmainargs and __wgetmainargs parsing, verified with apitests. Patch by Yaroslav Veremenko. CORE-11673 #resolve #comment Thanks!
svn path=/trunk/; revision=72214
2016-08-12 21:31:32 +00:00
Hermès Bélusca-Maïto 0bdab15b0f [ADVAPI32_APITEST]: Addendum to r72207:
- Fix the tests so that they test what they have to test, on ReactOS & Windows 2k3/XP. (Note that here, ReactOS used the more restrained event size limitations of Vista+ compared to those of Win2k3. I choose to test, and will implement, the size limitations of Win2k3.)
- Choose a different name for the test such that it doesn't collide with the 'eventlog' test from advapi32_winetest.
CORE-11838 CORE-11839

svn path=/trunk/; revision=72209
2016-08-12 13:38:49 +00:00
Hermès Bélusca-Maïto b3195b9538 [ADVAPI32_APITEST]: Add some supplemental tests for Winetests' Event Logging functions, testing different RPC limits related to the maximum size of the data buffer in events.
CORE-11838 CORE-11839

svn path=/trunk/; revision=72207
2016-08-12 12:15:24 +00:00
Hermès Bélusca-Maïto 9a84ae8ab1 Remove extra ending semicolons in our C code base.
svn path=/trunk/; revision=72199
2016-08-11 16:50:41 +00:00
Mark Jansen da6a705bb1 [ATL][ATL_APITEST] Partially implement CRegKey + add tests. CORE-11746
svn path=/trunk/; revision=72191
2016-08-10 19:34:38 +00:00
Ged Murphy 705846cb25 [FLTLIB_APITEST]
- Create a skeleton test project for fltlib.dll
- Not yet part of the build

svn path=/trunk/; revision=72173
2016-08-09 21:23:40 +00:00
Hermès Bélusca-Maïto 13b28424d8 [APITESTS]: Add a test for advapi32!IsTextUnicode.
CORE-11803

svn path=/trunk/; revision=72148
2016-08-07 16:35:56 +00:00
Mark Jansen 49fc85553f [ATL][ATL_APITEST] Add implementation + tests for most functions from CPoint, CSize, CRect. CORE-11747 #resolve
Not all functions are implemented, the ones that are not implemented are left in a comment in the header.

svn path=/trunk/; revision=72110
2016-08-04 19:15:21 +00:00
Mark Jansen 684feb7418 [ATL][ATL_APITEST] Implement / Improve CString, based upon the code that was already there. CORE-11579 #resolve
Add code + tests for:
Conversion of A->W and W->A, equality operators, MakeLower, MakeUpper, Find, FindOneOf, ReverseFind, Compare, Mid, Left, Right, Format, Replace, Trim, TrimLeft, TrimRight.

svn path=/trunk/; revision=72061
2016-07-30 19:07:43 +00:00
Thomas Faber ba1b985215 [SHELL32_APITEST]
- Add a test for CShellLink::GetDescription/SetDescription
CORE-5272

svn path=/trunk/; revision=72035
2016-07-28 15:25:35 +00:00
Thomas Faber e556dea177 [KERNEL32]
- Fix GetComputerNameEx behavior with regard to NULL/non-NULL buffers and size calculation
CORE-11368

svn path=/trunk/; revision=71950
2016-07-16 07:08:21 +00:00
Thomas Faber 4a36ad96cb [DNSAPI_APITEST]
- Handle unexpected failures without crashing
ROSTESTS-226

svn path=/trunk/; revision=71717
2016-07-02 08:49:07 +00:00
Thomas Faber f6bb8b1fb6 [DNSAPI_APITEST]
- Fix unix build
ROSTESTS-226

svn path=/trunk/; revision=71710
2016-07-01 15:19:40 +00:00
Thomas Faber 2d22483bef [DNSAPI_APITEST]
- Add a test for DnsQuery. Patch by Víctor Martínez Calvo, with additional tests and fixes by me.
ROSTESTS-226 #resolve

svn path=/trunk/; revision=71709
2016-07-01 14:44:55 +00:00
Thomas Faber b25491463d [SHELL32_APITEST]
- Add a test for CShellLink GetPath/SetPath behavior with environment variables. Patch by Andreas Maier.
ROSTESTS-229 #resolve

svn path=/trunk/; revision=71672
2016-06-25 22:09:49 +00:00
Mark Jansen 2df110e92d [MSGINA_APITEST] Add a test for ShellDimScreen, used to fade out the background of the logoff dialog. Thanks to Jared for finding the api, and Hermès for his help! CORE-11422
svn path=/trunk/; revision=71649
2016-06-16 21:00:08 +00:00
Hermès Bélusca-Maïto 2a6da4ca41 [APITESTS]: Fix MSVC warning C4114: "same type qualifier used more than once".
svn path=/trunk/; revision=71642
2016-06-15 17:45:06 +00:00
Mark Jansen 122a7bd37d [APPHELP_APITEST] Extend stringtable related tests. CORE-10367
svn path=/trunk/; revision=71572
2016-06-05 21:26:07 +00:00
Mark Jansen 85de8c6ccb [APPSHIM_APITEST] Show a few shims that do not use hooks to function.
svn path=/trunk/; revision=71513
2016-06-04 14:51:38 +00:00
Mark Jansen 4847a35732 [APPHELP_APITEST][APPHELP] Add new tests showing that SdbWriteStringTag and SdbEndWriteListTag are incorrect, fix SdbEndWriteListTag CORE-10367
SdbWriteStringTag requires the database to keep track of written strings, and append a stringtable to a database.

svn path=/trunk/; revision=71501
2016-06-02 18:59:04 +00:00
Mark Jansen d37cb8f5ad [APPHELP][ACLAYER][APPSHIM_APITEST] Fix some WCHAR hack constructions that VS 2010 didn't like, as pointed out by Hermès
svn path=/trunk/; revision=71477
2016-05-31 18:02:54 +00:00
Mark Jansen 1ddc5f058e [APPHELP_APITEST] Update embedded database to actually match the embedded exe again.
svn path=/trunk/; revision=71448
2016-05-28 21:46:24 +00:00
Mark Jansen 5d086596ff [APPSHIM_APITEST] Move versionlie tests to a dedicate shim-test binary.
svn path=/trunk/; revision=71447
2016-05-28 21:33:56 +00:00
Mark Jansen cc1a5a5932 [APPHELP][APPHELP_APITEST] Implement various VersionLie shims. CORE-11299 #resolve
- Implement VersionLie shims
- Add tests for the VersionLie shims
- update get_host_winver prototype (thanks to Thomas for pointing out my err)

We cannot apply this shim yet, since a required part of the infrastructure is missing.

svn path=/trunk/; revision=71442
2016-05-28 17:55:56 +00:00
Mark Jansen bf1990897f [APPHELP_APITEST] Remove some code duplication.
svn path=/trunk/; revision=71400
2016-05-25 17:22:47 +00:00
Thomas Faber a315554938 [RTL]
- Return the ACE pointer from RtlFirstFreeAce also if it is at the end of the ACL buffer.
CORE-11304 #resolve

svn path=/trunk/; revision=71382
2016-05-22 22:11:54 +00:00
Mark Jansen f03661d8e1 [APPHELP][APPHELP_APITEST] Add more db tests and implement SdbGetDatabaseVersion. CORE-10367
svn path=/trunk/; revision=71381
2016-05-22 20:39:41 +00:00
Mark Jansen a6879a9948 [APPHELP][APPHELP_APITEST] Implement most of sdbread and sdbwrite, mainly the work of Mislav Blaževic, with some small additions from me. CORE-10367
svn path=/trunk/; revision=71380
2016-05-22 20:27:02 +00:00
Mark Jansen ebd1e3d611 [BROWSEUI_APITEST] Add tests for ACListISF, a class used for autocompletion. CORE-9281
- Add tests for ACListISF.
- Change the SHExplorerParseCmdLine test to use GetProcAddress instead of relying on the import (it's not there anymore in NT 6.0+)

svn path=/trunk/; revision=71345
2016-05-16 18:03:09 +00:00
Mark Jansen dd2544d913 [COM_APITEST] Add ICurrentWorkingDirectory for CORE-9281
svn path=/trunk/; revision=71334
2016-05-15 14:45:01 +00:00
Mark Jansen 0f8226d756 [NTDLL_APITEST] Show that NtMapViewOfSection does not properly NULL out the remainder of the mapped memory. CORE-11206
svn path=/trunk/; revision=71289
2016-05-08 17:01:15 +00:00
Thomas Faber 0f3e91c5f7 [NTDLL_APITEST]
- Add a test for heap user values and flags when using RtlReAllocateHeap in-place
CORE-11196

svn path=/trunk/; revision=71278
2016-05-08 08:03:50 +00:00
Mark Jansen 3a8ce2cae5 [NTOSKRNL][NTDLL_APITEST] Fix error returned from NtCreateSection when opening an empty file. CORE-11166
svn path=/trunk/; revision=71261
2016-05-05 12:06:07 +00:00
Thomas Faber c55c338dfa [NTOS:CM]
- Correctly handle NULL Data with nonzero DataSize in NtSetValueKey
ROSTESTS-200 #resolve

svn path=/trunk/; revision=71232
2016-05-02 13:19:44 +00:00
Mark Jansen 0984c6825b [APPHELP][APPHELP_APITEST] Add some apphelp GUID helper functions + tests to be used later on. CORE-10367
- SdbGetStandardDatabaseGUID
- SdbGUIDFromString
- SdbGUIDToString
- SdbIsNullGUID

svn path=/trunk/; revision=71230
2016-05-01 21:43:30 +00:00
Mark Jansen 78280ad21f [APPHELP][APPHELP_APITEST] Add SdbGetFileAttributes + tests, based on the work of Mislav Blažević CORE-10367
- Implement SdbGetFileAttributes (based on the work of Mislav Blažević)
- Add tests for SdbGetFileAttributes

svn path=/trunk/; revision=71226
2016-05-01 19:12:06 +00:00
Thomas Faber c1a1365490 [SHELL32_APITEST]
- Add a test for SHParseDisplayName
CORE-10434

svn path=/trunk/; revision=71216
2016-04-30 15:06:57 +00:00