Commit graph

811 commits

Author SHA1 Message Date
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
Mark Jansen b1e3b339f6 [APPHELP][APPHELP_APITEST] Update SdbTagToString tests to check all known tags CORE-10367
- Add a list of hardcoded tags, for all versions up to win7 they are checked against windows.
- Update SdbTagToString with a few missing strings
- Hardcode the used version to Win7 for now, as backporting these strings would not make much sense.

svn path=/trunk/; revision=71200
2016-04-24 17:19:09 +00:00
Mark Jansen f97c563d01 Nothing to see here.
svn path=/trunk/; revision=71198
2016-04-24 13:27:22 +00:00
Mark Jansen 7aaa9aee54 [APPHELP][APPHELP_APITEST] Add SdbTagToString + test by Mislav Blažević CORE-10367
svn path=/trunk/; revision=71197
2016-04-24 13:05:00 +00:00
Mark Jansen 91d86a9a91 [SDK][SDK_APITEST] Improve delayload support CORE-10935
- Add an apitest for our delayload functions.
- Improve the delayload (mainly the failure cases, throw exceptions where expected etc).
- Add some tests for advanced delayload features (currently blocked on CORE-6504 and CORE-10957)

svn path=/trunk/; revision=71190
2016-04-23 20:38:06 +00:00
Sylvain Petreolle 8c386bbbcc [ROSTESTS]
apitests: win32kdll and win32nt can't be built on Release builds,
NtUserSetDbgTag is not exported.


svn path=/trunk/; revision=71189
2016-04-23 20:08:10 +00:00
Amine Khaldi 248dcd328b * Addendum to r71184. CORE-9111
svn path=/trunk/; revision=71185
2016-04-20 12:39:37 +00:00
Thomas Faber a976f17441 [USER32_APITEST]
- Add a test for window station reference counts
CORE-11124

svn path=/trunk/; revision=71173
2016-04-16 20:30:11 +00:00
Thomas Faber d58a87beca [NTOS:PS]
- Return sensible values for KernelTime/UserTime from NtQueryInformationProcess:ProcessTimes
CORE-7007 #resolve

svn path=/trunk/; revision=71153
2016-04-12 17:44:47 +00:00
Thomas Faber 8bed306ee8 [NTDLL_APITEST]
- Add a test for NtQueryInformationProcess:ProcessTimes
CORE-7007

svn path=/trunk/; revision=71152
2016-04-12 17:39:01 +00:00
Thomas Faber 42ec0c2167 [COM_APITEST]
- Add some more classes, thanks to http://www.geoffchappell.com/studies/windows/ie/browseui/classes/index.htm

svn path=/trunk/; revision=71150
2016-04-12 13:18:32 +00:00
Thomas Faber 05838e4ee8 [COM_APITEST]
- Add some classes and interfaces related to CORE-10838.

svn path=/trunk/; revision=71136
2016-04-10 09:40:16 +00:00
Thomas Faber ce2ec6562e [COM_APITEST]
- Add even more interfaces

svn path=/trunk/; revision=71127
2016-04-09 15:13:01 +00:00
Thomas Faber 70c91c4798 [COM_APITEST]
- Add some more interfaces

svn path=/trunk/; revision=71126
2016-04-09 14:05:08 +00:00
Thomas Faber e71bfbadc6 [COM_APITEST]
- Add ieframe classes CLSID_Internet, CLSID_CUrlHistory, CLSID_InternetShortcut, CLSID_ShellUIHelper, CLSID_ShellNameSpace, CLSID_WebBrowser and CLSID_WebBrowser_V1
- Add shdocvw classes CLSID_SearchAssistantOC, CLSID_ShellSearchAssistantOC and CLSID_ShellShellNameSpace

svn path=/trunk/; revision=71123
2016-04-09 09:22:57 +00:00
Thomas Faber 02d3757499 [COM_APITEST]
- Add IID_ICallFactory, IID_IForegroundTransfer and IID_IRpcOptions
- Fix a format string mismatch

svn path=/trunk/; revision=71122
2016-04-09 09:18:57 +00:00
Thomas Faber e58452bd21 [COM_APITEST]
- Add more interfaces, in particular IID_IMarshal2 and DIID_DWebBrowserEvents
- Alphabetize ieframe classes

svn path=/trunk/; revision=71121
2016-04-09 09:00:44 +00:00
Thomas Faber 1687e7dce2 [COM_APITEST]
- Test INamespaceWalk, INamespaceWalkCB and INamespaceWalkCB2
CORE-11093

svn path=/trunk/; revision=71120
2016-04-09 08:49:17 +00:00
Thomas Faber 518a536514 [NTDLL_APITEST]
- Add missing va_end. Patch by Víctor Martínez Calvo.
ROSTESTS-202 #resolve

svn path=/trunk/; revision=71108
2016-04-06 19:31:20 +00:00
Thomas Faber 3d165be77b [CRT_APITEST]
- Add missing va_end. Patch by Víctor Martínez Calvo.
ROSTESTS-221 #resolve

svn path=/trunk/; revision=71107
2016-04-06 12:34:26 +00:00
Thomas Faber edc42192c4 [WS2_32_APITEST]
- Add test for getservbyname
CORE-10440

svn path=/trunk/; revision=71101
2016-04-05 12:44:16 +00:00
Thomas Faber 8726fc984a [WS2_32_APITEST]
- Add test for getservbyport
CORE-10440

svn path=/trunk/; revision=71100
2016-04-05 12:20:47 +00:00
Thomas Faber 001dc229d5 [APPHELP_APITEST]
- Add tests for the apphelp SDB compatibility layer. Patch by Mark Jansen.
CORE-10367

svn path=/trunk/; revision=71077
2016-03-29 08:55:40 +00:00
Thomas Faber 027a043944 [SHELL32_APITEST]
- Add tests for IShellFolder::CompareIDs. Patch by Mark Jansen, with additional test cases by Sylvain Deverre.
CORE-10747

svn path=/trunk/; revision=71064
2016-03-28 15:35:21 +00:00
Thomas Faber d7dacbad47 [CMAKE]
- Delay imports belong before regular imports because delayimp may pull in functions from kernel32
CORE-10935

svn path=/trunk/; revision=71061
2016-03-27 15:14:32 +00:00
Pierre Schweitzer f8ab19dde0 [NTDLL_APITEST]
RtlGenerate8dot3Name: add more test locales

svn path=/trunk/; revision=71028
2016-03-20 11:31:42 +00:00
Pierre Schweitzer 34de8c69b3 [NTDLL_APITEST]
Set correct locale in RtlGenerate8dot3Name test.
This makes the test reproducible on every target plateform.

Patch by Mark Jansen.

ROSTESTS-218 #resolve #comment Patch commited in r71027. Thanks!

svn path=/trunk/; revision=71027
2016-03-20 10:51:14 +00:00
Colin Finck 5c6fa5db16 [WINSPOOL]
Additional tests show that IsValidDevmodeA/W actually does a lot more than I previously thought.
Implement the missing known features and test this little function to death in winspool_apitest to cover each and every possible call.
They pass on ReactOS, Windows Server 2003 and Windows 8.1.

Credits and many thanks go to Mark Jansen for the additional tests!

svn path=/branches/colins-printing-for-freedom/; revision=70595
2016-01-15 04:36:31 +00:00
Colin Finck 3d7b3309c1 [WINSPOOL]
Add and fully implement IsValidDevmodeA and IsValidDevmodeW.

[WINSPOOL_APITEST]
Add tests for IsValidDevmodeA and IsValidDevmodeW covering the entire functions.

svn path=/branches/colins-printing-for-freedom/; revision=70503
2016-01-06 04:31:53 +00:00
Timo Kreuzer 64820cf82f [WIN32KDLL_2K3SP2]
Export NtUserGetClassInfoEx (as it's called in 2k3) both as NtUserGetClassInfo (as it's called on XP) and NtUserGetClassInfo. They have the same prototype.

svn path=/trunk/; revision=70463
2015-12-28 23:51:05 +00:00
Timo Kreuzer 0c24f4ecd6 [WIN32KDLL_2K3SP2]
- "Fix" an export name: NtUserGetClassInfoEx on 2k3 is the same as NtUserGetClassInfo on XP (note that we currently use the default, aka ros specific, win32kdll on the WHS testbot, but it's mostly identical.

[WIN32KNT_APITEST]
- Fix a typo
- add missing tests to testlist.c

svn path=/trunk/; revision=70462
2015-12-28 23:03:04 +00:00
Timo Kreuzer 7e81805878 [GDITOOLS]
3rd try to fix WHS rostests build

svn path=/trunk/; revision=70461
2015-12-28 20:53:34 +00:00
Timo Kreuzer 25b8fe488d [WIN32NT_APITEST]
2nd try to fix WHS rostests build

svn path=/trunk/; revision=70460
2015-12-28 20:51:28 +00:00
Timo Kreuzer 96071c690b [WIN32NT_APITEST]
Try to fix WHS rostests build

svn path=/trunk/; revision=70459
2015-12-28 20:46:05 +00:00
Timo Kreuzer 7ad21a4425 [APOTESTS]
- Convert win32k native api test to actual wine style api-tests
- Hack around a bit with the win32k dlls, some renaming, etc.
- Delete old apitest stuff

svn path=/trunk/; revision=70458
2015-12-28 20:31:10 +00:00
Timo Kreuzer 3ef0e98b4b [GDITOOLS]
Add a library with some helper routines for GDI tests

svn path=/trunk/; revision=70457
2015-12-28 20:24:57 +00:00
Timo Kreuzer c88949294c [CRT_APITEST]
Fix sprintf tests to succeed on W2K3

svn path=/trunk/; revision=70456
2015-12-28 15:49:29 +00:00
Timo Kreuzer 42a833ef22 [CRT_APITEST]
Add tests for _snprintf, _snwprintf, strtoul, wcstoul
Patch by Thomas Faber (slightly modified by me)
CORE-6510

svn path=/trunk/; revision=70455
2015-12-28 15:24:47 +00:00
Timo Kreuzer 66908136d4 [CRT_APITEST]
- Disable a check for crtdll
- Fix an MSVC warning

svn path=/trunk/; revision=70453
2015-12-28 11:01:03 +00:00
Timo Kreuzer 2866514570 [CRT_APITEST]
Add another test for strlen, that tests, whether the direction flag in ELFAGS has been modified. While clearing it is legitimate to do according to the ABI, the native implementation does not change it, so we don't want to do it either.

svn path=/trunk/; revision=70429
2015-12-26 20:32:31 +00:00
Timo Kreuzer 909f7439d0 [CRT_APITEST]
- disable GCC builtins
- Add simple tests for strlen, showing that a NULL pointer will cause an access violation, which is broken in our asm implementation

svn path=/trunk/; revision=70427
2015-12-26 19:20:54 +00:00
Pierre Schweitzer df6860337a [IPHLPAPI_APITEST]
Rewrite the two existing tests for ICMP and add a third one (for IPv6).
Patch by Tim Crawford.

ROSTESTS-212 #resolve #comment Commited in r70367. Thanks!

svn path=/trunk/; revision=70367
2015-12-16 21:11:22 +00:00
Pierre Schweitzer 1a18680120 [IPHLPAPI_APITEST]
Add more tests

svn path=/trunk/; revision=70326
2015-12-12 09:45:23 +00:00
Ged Murphy 78c2f01594 Caught out by unix again
svn path=/trunk/; revision=70313
2015-12-08 22:18:41 +00:00
Ged Murphy 452bc55d4b [GDI32_APITEST]
- Add some tests for GetGlyphIndices

svn path=/trunk/; revision=70311
2015-12-08 22:14:48 +00:00
Pierre Schweitzer 4042ba935e [IPHLPAPI_APITEST]
Add another check that shows that data returned by GetAdaptersAddresses() are incomplete and thus broken...
"This isn't the type you're looking for." would say an old man

svn path=/trunk/; revision=70290
2015-12-07 22:33:29 +00:00
Pierre Schweitzer ebb8c660f4 [IPHLPAPI]
Display the IP address used for tests
This highlights an issue with returned IP in ReactOS

svn path=/trunk/; revision=70286
2015-12-07 11:21:20 +00:00
Amine Khaldi cc656f9803 [IPHLPAPI_APITEST] Move icmp tests from winetests to apitests where they belong. By Tim Crawford. ROSTESTS-201
svn path=/trunk/; revision=70261
2015-12-04 10:34:24 +00:00
Pierre Schweitzer 1fe3047f6b [IPHLPAPI_APITEST]
Add a new apitest for iphlpapi.dll.
It includes tests for testing the SendARP() and its underlying IOCTL.

Tested against W2K3.
Obviously, most of these tests fail on ReactOS.

svn path=/trunk/; revision=70210
2015-11-29 19:31:33 +00:00
Thomas Faber e38b0c1eb4 [CRT_APITEST]
- Add tests for static object destructors. Patch by Mark Jansen.
CORE-10562

svn path=/trunk/; revision=70023
2015-11-22 14:01:04 +00:00
Thomas Faber 3aee20e0d8 [CRT_APITEST]
- Fix dll loading in static_construct test
CORE-10562

svn path=/trunk/; revision=70022
2015-11-22 13:51:19 +00:00
Thomas Faber 9b5d026744 [CRT_APITEST]
- Also test static constructors/destructors in a DLL.
CORE-10562

svn path=/trunk/; revision=69993
2015-11-21 13:45:45 +00:00
Thomas Faber bfa1295d2b [CRT_APITEST]
- Add tests for static initialization and static constructors
CORE-10562

svn path=/trunk/; revision=69991
2015-11-21 12:04:36 +00:00
Thomas Faber 1d90274758 [USER32_DYNAMIC]
- Show that user32 keeps an extra reference to itself
CORE-10540

svn path=/trunk/; revision=69962
2015-11-20 17:27:27 +00:00
Thomas Faber 72d1f8be4f [USER32_DYNAMIC_APITEST]
- Add a test that uses LoadLibrary/FreeLibrary on user32.dll, causing it to re-initialize.
CORE-10540

svn path=/trunk/; revision=69923
2015-11-17 13:45:59 +00:00
Thomas Faber 043845e1cd [NTDLL_APITEST]
- Add a test for RtlImageRvaToVa
CORE-10523

svn path=/trunk/; revision=69895
2015-11-16 09:48:39 +00:00
Sylvain Petreolle 9eec8dc5b9 [COM_APITEST]
Use explicit W calls.
All the code is unicode-based.

svn path=/trunk/; revision=69830
2015-11-07 11:59:23 +00:00
Thomas Faber 0f4f3d7cd8 [ATL]
- Implement more CComBSTR methods. Patch by Mark Jansen.
CORE-10478 #resolve

svn path=/trunk/; revision=69815
2015-11-05 10:49:52 +00:00
Amine Khaldi 2b6ae1241e [USER32_APITEST] Fix a typo.
svn path=/trunk/; revision=69799
2015-11-03 21:14:15 +00:00
Thomas Faber 7744b35234 [USER32_APITEST]
- Add a test for sending recursive inter-thread messages
CORE-9210

svn path=/trunk/; revision=69797
2015-11-03 20:40:19 +00:00
Timo Kreuzer 5de8b3d15c [GDI32_APITEST]
Formatting: tabs -> spaces

svn path=/trunk/; revision=69754
2015-10-31 15:24:09 +00:00
Timo Kreuzer 96afb9e14c [GDI32_APITEST]
Fix tests for GetObject

svn path=/trunk/; revision=69752
2015-10-31 14:59:08 +00:00
Thomas Faber dde60eb9ef [USER32_APITEST]
- Add some tests for other WS_CHILD/WS_POPUP combinations

svn path=/trunk/; revision=69710
2015-10-26 12:12:01 +00:00
Thomas Faber a8f4623261 [USER32_APITEST]
- Remove nonexistent test...

svn path=/trunk/; revision=69708
2015-10-26 12:05:35 +00:00
Thomas Faber ca8fcf5402 [USER32_APITEST]
- Add a test for the bug in win32k highlighted by the recent ATL breakage
CORE-10413

svn path=/trunk/; revision=69707
2015-10-26 12:03:09 +00:00
Pierre Schweitzer 54af95dc46 [CRT_APITEST]
Add more tests

CORE-10390

svn path=/trunk/; revision=69681
2015-10-25 07:42:34 +00:00
Pierre Schweitzer 16543cd058 [CRT_APITEST]
Add a few tests to show mbstowcs/wcstombs behavior will NULL ptr.

CORE-10390

svn path=/trunk/; revision=69680
2015-10-24 23:18:33 +00:00
Pierre Schweitzer 34c9b63005 [MSVCRT]
Add a test that shows that _splitpath() null-terminates drive

svn path=/trunk/; revision=69661
2015-10-24 08:20:05 +00:00
Thomas Faber 237a82dc51 [ATL]
- Add CComHeapPtr implementation and tests. Patch by Mark Jansen.
CORE-10344 #resolve

svn path=/trunk/; revision=69593
2015-10-18 10:46:11 +00:00
Pierre Schweitzer fedc72ff66 [NTDLL_APITEST]
Fix test
Spotted by Alex

svn path=/trunk/; revision=69516
2015-10-12 17:43:42 +00:00
Pierre Schweitzer c4b93ac3c5 [WHOOPS]
C/P error

svn path=/trunk/; revision=69507
2015-10-11 21:51:32 +00:00
Pierre Schweitzer 24420c2ba1 [NTDLL_APITESTS]
Extend the RtlAllocateHeap() test

svn path=/trunk/; revision=69506
2015-10-11 21:49:16 +00:00
Pierre Schweitzer 7feed70d00 [NTDLL_APITESTS]
Add a test that shows that RtlAllocateHeap() totally ignores HEAP_CREATE_ALIGN_16

svn path=/trunk/; revision=69504
2015-10-11 21:10:03 +00:00
Thomas Faber 9c78e0659c [USER32_APITEST]
- Add some tests for window properties
CORE-3897

svn path=/trunk/; revision=69490
2015-10-10 16:08:31 +00:00
Sylvain Petreolle 4aa8ae13c2 [user32_apitest]
0x%lu does not mean anything correct.

svn path=/trunk/; revision=69434
2015-10-03 21:41:10 +00:00
Pierre Schweitzer 2f08cf3f2a [NTDLL_APITEST]
*.S expects length in chars

svn path=/trunk/; revision=69392
2015-09-28 08:53:31 +00:00
Pierre Schweitzer df8ea25b31 [NTDLL_APITEST]
Add more tests for RtlGenerate8dot3Name().
Not sure how many more are failing in ReactOS: they all pass in my WC (teasing :-))

CORE-10223

svn path=/trunk/; revision=69388
2015-09-27 20:41:14 +00:00
Pierre Schweitzer 9099445189 [KERNEL32_APITEST]
Rename apitest Mailslot test to MailslotRead to avoid testman issue with mailslot winetest

svn path=/trunk/; revision=69352
2015-09-25 14:53:08 +00:00
Pierre Schweitzer 2f233ce1f9 [KERNEL32_APITEST]
Add a test for CORE-10188 (which was fixed by Thomas in r69236).
It is based on Nikita Pechenkin's patch with a few modifications by me to avoid race condition on start (and avoid flappy test) and to match more closely our coding style

ROSTESTS-190 #resolve #comment Committed in r69351. Thanks!

svn path=/trunk/; revision=69351
2015-09-25 14:44:38 +00:00
Thomas Faber c43914c6a7 [NTDLL_APITEST]
- Fix a test failure on WHS-Testbot

svn path=/trunk/; revision=69331
2015-09-23 15:53:24 +00:00
Thomas Faber 5e43107328 [NTDLL_APITEST]
- Add simple tests for NtOpenThreadToken[Ex] and NtOpenProcessToken[Ex]

svn path=/trunk/; revision=69329
2015-09-23 15:14:25 +00:00
Pierre Schweitzer 40d3c19242 [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69307
2015-09-20 17:51:41 +00:00
Pierre Schweitzer 9fce9f4c34 [NTDLL_APITESTS]
Properly init string length

svn path=/trunk/; revision=69305
2015-09-20 14:04:48 +00:00
Pierre Schweitzer 2a99e6260e [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69304
2015-09-20 13:32:34 +00:00
Pierre Schweitzer 1e31c8d334 [NTDLL_APITESTS]
Add a few tests for RtlGenerate8dot3Name()

svn path=/trunk/; revision=69303
2015-09-20 10:42:05 +00:00
Hermès Bélusca-Maïto e709e70d0e [PEFILE:APITEST]: Validate IMAGE_SCN_MEM_NOT_PAGED flag for PE files. By Mark Jansen. CORE-10160
svn path=/trunk/; revision=69198
2015-09-12 13:08:47 +00:00
Amine Khaldi de917295f6 [PEFILE_APITEST] Introduce tests that load ntoskrnl.exe and validate various section flags. Created by Mark Jansen in light of r68930. CORE-10106
svn path=/trunk/; revision=69154
2015-09-09 17:27:36 +00:00
Amine Khaldi d69d6cab4e [APITESTS] Add missing xdk dependency. CORE-9586
svn path=/trunk/; revision=69117
2015-09-08 12:51:53 +00:00
Thomas Faber 2565dcba26 [NTOS:PS]
- Implement NtApphelpCacheControl. Patch by Mark Jansen
CORE-9914 #resolve

svn path=/trunk/; revision=69022
2015-09-05 11:49:54 +00:00
Sylvain Petreolle 4921df2054 [COM_APITEST]
Do not test for ISFHelper anymore.

svn path=/trunk/; revision=68919
2015-09-02 20:52:34 +00:00
Thomas Faber a54882acc1 [ADVAPI32_APITEST]
- Do not call RtlInitUnicodeString on an unterminated string (DPH)

svn path=/trunk/; revision=68867
2015-08-30 08:37:13 +00:00
Thomas Faber a46c9450de [GDI32_APITEST]
- Add a simple test for SetBoundsRect

svn path=/trunk/; revision=68750
2015-08-18 10:24:01 +00:00
Thomas Faber 195d119706 [NTDLL_APITEST]
- Add tests for mapping and relocating an image with an IMAGE_SCN_TYPE_NOLOAD section
CORE-8384

svn path=/trunk/; revision=68676
2015-08-11 07:21:33 +00:00
Thomas Faber 7bccf4601e [NTDLL_APITEST]
- Properly clean up after tests

svn path=/trunk/; revision=68675
2015-08-11 07:13:51 +00:00
Thomas Faber 7a5715dced [NTDLL_APITEST]
- Look for test.dll in the right place

svn path=/trunk/; revision=68674
2015-08-11 06:45:45 +00:00
Christoph von Wittich 1f7ffb9c1d [GDI32_APITEST]
-include the testdata in all targets
-load it from the correct path even when the application is using a different working directory

svn path=/trunk/; revision=68623
2015-08-08 08:31:49 +00:00
Christoph von Wittich 96c2ec9407 [GDI32_APITEST]
use correct testdata path

svn path=/trunk/; revision=68618
2015-08-07 17:40:55 +00:00
Thomas Faber 0436f08597 [WS2_32_APITEST]
- Apparently doesntexist.reactos.org... exists

svn path=/trunk/; revision=68577
2015-07-26 09:26:29 +00:00
Thomas Faber 082ca2d474 [NTDLL_APITEST]
- Add test for SystemKernelDebuggerInformation, showing that it accepts an unaligned info pointer

svn path=/trunk/; revision=68393
2015-07-12 17:52:42 +00:00
Thomas Faber 39d42581f4 [NTDLL_APITEST]
- Add some tests for NtQuerySystemInformation with invalid info class

svn path=/trunk/; revision=68391
2015-07-12 08:53:40 +00:00
Thomas Faber 4b4eaae90e [PSDK]
- Add IFolderView2 definition from Wine

svn path=/trunk/; revision=68357
2015-07-06 18:38:15 +00:00
Thomas Faber 0617f84eda [RTL][NDK][NTDLL_APITEST]
- Properly implement/declare/test RtlCopyMappedMemory... it's not that hard
CORE-9857

svn path=/trunk/; revision=68234
2015-06-21 19:15:01 +00:00
Thomas Faber e9138ce35a [NTDLL_APITEST]
- Add a test for SystemFlagsInformation that demonstrates the parameter checks performed by NtQuerySystemInformation/NtSetSystemInformation
CORE-9849

svn path=/trunk/; revision=68225
2015-06-21 08:50:10 +00:00
Thomas Faber 6bb0bec44f [SHELL32_APITEST]
- Add a test for CLSID_MyComputer that shows this folder object is also cached.
CORE-9839

svn path=/trunk/; revision=68209
2015-06-20 16:28:38 +00:00
Thomas Faber 9046d69084 [SHELL32_APITEST]
- Add a test showing that repeated calls to SHGetDesktopFolder return pointers to the same object, and that its CreateViewObject method instead creates new objects.
CORE-9839

svn path=/trunk/; revision=68200
2015-06-20 09:07:29 +00:00
Thomas Faber 52e13410cb [APITESTS]
- Make CUnknownBase constructor parameters optional

svn path=/trunk/; revision=68199
2015-06-20 08:51:07 +00:00
Colin Finck a4d50f82ff [LOCALSPL_APITEST]
Put the calls that eventually give us the function pointers to localspl into a separate procedure GetLocalsplFuncs to enable further tests easily.

svn path=/branches/colins-printing-for-freedom/; revision=68194
2015-06-19 15:05:58 +00:00
Thomas Faber 8c4e56def9 [USER32_APITEST]
- Arch, will you stop only testing your code with MSVC?!

svn path=/trunk/; revision=68189
2015-06-18 14:02:55 +00:00
Thomas Faber 484a5f8751 [USER32_APITEST]
- Fail if we get too many WM_HOTKEY messages
CORE-9728

svn path=/trunk/; revision=68188
2015-06-18 13:59:51 +00:00
Thomas Faber 171f891e93 [USER32_APITEST]
- Add a simple test for RegisterHotKey with regular vs modifier-only hotkeys
CORE-9728

svn path=/trunk/; revision=68186
2015-06-18 13:41:52 +00:00
Thomas Faber ab14879b70 [NTDLL_APITEST]
- Also test FileFsAttributeInformation in NtQueryVolumeInformationFile

svn path=/trunk/; revision=68166
2015-06-17 06:54:17 +00:00
Thomas Faber bfe3738fc9 [NTDLL_APITEST]
- Fix GCC build

svn path=/trunk/; revision=68161
2015-06-16 11:40:51 +00:00
Thomas Faber 7a983aa51b [NTDLL_APITEST]
- Test FileFsVolumeInformation in NtQueryVolumeInformationFile test
CORE-9820

svn path=/trunk/; revision=68160
2015-06-16 11:33:35 +00:00
Thomas Faber d555f45389 [WS2_32_APITEST]
- Add a test for send/sendto with a read-only buffer
CORE-9807

svn path=/trunk/; revision=68120
2015-06-13 12:29:07 +00:00
Colin Finck 888171ae18 [LOCALSPL_APITEST]
It's only the second disabled test, which is causing trouble for us, so reactivate the first one.
This also confirms that the problem is not related to SEH.

svn path=/branches/colins-printing-for-freedom/; revision=68104
2015-06-10 21:49:49 +00:00
Colin Finck 1e363204d6 [LOCALSPL_APITEST]
- Add more tests for fpEnumPrinters.
  For some reason, using SEH here works only once. We experience a hang in the testing process when you run the test again for a second time without restarting spoolsv. Needs more investigation.
- Ensure that the spooler service is running before starting any testing.
- Do proper cleanup in every case.

[LOCALSPL]
- Implement LocalEnumPrinters level 1 based on the API-Tests.
- Use DllAllocSplMem/DllFreeSplMem instead of HeapAlloc/HeapFree.
- Use AllocSplStr with DllFreeSplStr now that DuplicateStringW is gone.
- Use _countof where applicable.

[SPOOLSS]
- Found out that I was not the only one needing a wcsdup equivalent. My DuplicateStringW from localspl is actually exported as AllocSplStr in spoolss.
  This is actually part of a range of undocumented memory functions in spoolss, so implement and document AllocSplStr, DllAllocSplMem, DllFreeSplMem, DllFreeSplStr, ReallocSplMem and ReallocSplStr.
  Information about some of them was gathered through black box testing and DDK samples (down to Win95 DDK), which at least contained prototypes of them.
- Implement SplInitializeWinSpoolDrv based on the API-Test and simply return FALSE for SplIsUpgrade.

[SPOOLSS_APITEST]
- Add a test for ReallocSplStr, which was actually the most undocumented function of spoolss' memory functions.

[WINSPOOL]
SplInitializeWinSpoolDrv shows that we can't just auto-assign an ordinal to all winspool.drv functions. We even need to export some nameless functions by ordinal only.
Redo the whole .spec file based on the ordinals found in Windows Server 2003's winspool.drv. Trust WINE for the nameless stubs.

svn path=/branches/colins-printing-for-freedom/; revision=68089
2015-06-09 13:22:25 +00:00
Colin Finck f2a66788f8 [LOCALSPL_APITEST]
Write an API-Test for localspl.dll. As the original localspl.dll from Windows Server 2003 relies on proper initialization inside spoolsv.exe, we cannot test it standalone as usual.
To make testing possible anyway, this program basically does four things:

  - Injecting our testing code into spoolsv.exe.
  - Registering and running us as a service in the SYSTEM security context like spoolsv.exe, so that injection is possible at all.
  - Sending the test name and receiving the console output over named pipes.
  - Redirecting the received console output to stdout again, so it looks and feels like a standard API-Test.

Nevertheless, the testing code in fpEnumPrinters.c is still written like a usual test. The known ok(), skip(), etc. macros can be used as usual, their output is just redirected through the named pipes.
Thanks to Thomas for giving me the tip about injecting code into spoolsv! :)

svn path=/branches/colins-printing-for-freedom/; revision=68080
2015-06-08 17:15:44 +00:00
Amine Khaldi 66b9b5427f [OLE32_APITEST] Add test for IInitializeSpy. By Mark Jansen. See ROSTESTS-175 for more details.
svn path=/trunk/; revision=68069
2015-06-08 11:05:35 +00:00
Colin Finck 19839c646c [SPOOLSS_APITEST]
Add a test for SplInitializeWinSpoolDrv verifying that Wine's XP-compatible implementation of this function also works for 2003 (and that we're going to need some nameless exports by ordinals in winspool.drv...)

svn path=/branches/colins-printing-for-freedom/; revision=68035
2015-06-06 12:32:30 +00:00
Colin Finck 1e4d261c62 [PRINTING]
Add an include directory for all printing components containing definitions not found in the public headers.
For now, that's just PackStrings in spoolss.h.

[SPOOLSS_APITEST]
Use the new spoolss.h header.

[WINPRINT_APITEST]
Add an API-Test for the winprint Print Processor, so far for its EnumPrintProcessorDatatypesW function. Tests succeed in Windows Server 2003.
winspool.drv also provides functions that go into winprint.dll, but as these tests show, they behave slightly different in terms of error codes due to the involved RPC and routing.
Windows Server 2003 has winprint functions in localspl.dll, so you have to copy its localspl.dll to winprint.dll for testing.

[WINPRINT]
- Use PackStrings to simplify the code.
- Fix test failures.

svn path=/branches/colins-printing-for-freedom/; revision=68025
2015-06-05 18:16:51 +00:00
Colin Finck ecd7f83ffb [SPOOLSS]
In an attempt to simplify the code for further functions that return information structures, implement and document the undocumented PackStrings function.
Hints were taken from an XP DDK sample and own testing.

[SPOOLSS_APITEST]
Add some tests for PackStrings that succeed under Windows Server 2003.

svn path=/branches/colins-printing-for-freedom/; revision=68023
2015-06-05 15:52:39 +00:00
Colin Finck af0a3b64a9 [WINSPOOL_APITEST]
- Add tests for EnumPrinters
- Fix a test for EnumPrintProcessorDatatypes

svn path=/branches/colins-printing-for-freedom/; revision=68007
2015-06-04 12:19:06 +00:00