Commit graph

780 commits

Author SHA1 Message Date
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
Pierre Schweitzer 4f63d24fbf [KERNEL32_APITEST]
Add very long tests for tunnel cache.
So far, they are skipped because they are really long (they require more than 15s to complete).
Unfortunately, for unknown reason now, they are failing in ReactOS (whereas they shouldn't!).

An idea would be to see whether we can set an expiry of 1s for tunnel cache just for dbgtests and query the value from registry, so that it could help reduce test duration on ReactOS (but not on w2k3).

ROSTESTS-177

svn path=/trunk/; revision=67901
2015-05-25 11:38:02 +00:00
Pierre Schweitzer a26a39f194 [KERNEL32_APITEST]
Add more tests for tunnel cache

svn path=/trunk/; revision=67900
2015-05-25 11:14:12 +00:00
Pierre Schweitzer 11f128b53d [KERNEL32_APITEST]
Add simple tests regarding renaming and tunnel cache behavior for short names in user mode.
Longer tests should be added to show what happens in case of cache expiry.
All pass on w2k3 but not on ReactOS.

CORE-3875

svn path=/trunk/; revision=67897
2015-05-25 10:30:12 +00:00
Colin Finck 99b62ed313 [WINSPOOL_APITEST]
Make the tests actually succeed under Windows Server 2003.

svn path=/branches/colins-printing-for-freedom/; revision=67884
2015-05-24 16:55:20 +00:00
Thomas Faber f7bf32d2ad [ADVAPI32_APITEST]
- Fix test failures on Win 2003: unlike on Win7, write rights don't imply read
CORE-9719

svn path=/trunk/; revision=67849
2015-05-22 16:06:58 +00:00
Thomas Faber 9600755aaa [ADVAPI32_APITEST]
- Add a test for calling RegQueryInfoKey with different access rights
CORE-9719

svn path=/trunk/; revision=67848
2015-05-22 15:47:02 +00:00
Colin Finck beaa69af38 Time to commit some Work-In-Progress stuff before my diff gets too large..
[LOCALSPL]
- Begin work on the Local Spooler. Return a structure with function pointers in InitializePrintProvidor.
- Design and document internal structures for managing LocalSpl Handles, Printer Handles, Printers, Print Jobs and Print Processors.
  Manage Printers and Print Processors in Generic Tables, with one Job Queue per Printer managed as a Doubly Linked List.
- Implement LocalOpenPrinter, LocalEnumPrintProcessorDatatypes, LocalEnumPrintProcessors, LocalGetPrintProcessorDirectory, with focus on catching all corner cases.
  Currently working on LocalStartDocPrinter.
- Build upon the documentation at http://www.undocprint.org/formats/winspool/shd to read and write .SHD files.

[WINPRINT]
Begin work on the Standard Print Processor. Implement EnumPrintProcessorDatatypesW.

[WINSPOOL_APITEST]
Add an API Test for winspool.drv, currently testing some corner cases of ClosePrinter, EnumPrintProcessorDatatypesW, GetPrintProcessorDirectoryW, OpenPrinterW, StartDocPrinterW.
TODO: Find a way to actually test the localspl.dll functions instead of only winspool.drv. This DLL doesn't like to be tested standalone under Windows, e.g. without being used through spoolsv/spoolss.

[SPOOLSS]
Implement InitializeRouter by calling the InitializePrintProvidor function of localspl there.
This function should later also initialize further Print Providers.

[SPOOLSV]
Call InitializeRouter when starting up the service.

[WINSPOOL]
Add dummy functions for EnumPrintProcessorDatatypesA/EnumPrintProcessorDatatypesW.

[All modules]
Fix printf format specifiers for errors (%lu) and statuses (%ld).

svn path=/branches/colins-printing-for-freedom/; revision=67847
2015-05-22 15:29:07 +00:00
Hermès Bélusca-Maïto e2d20087ab [ROSTESTS]: Move old testdata directory into the new one and add test files by Victor Martinez.
ROSTESTS-169 #resolve

svn path=/trunk/; revision=67625
2015-05-10 14:59:04 +00:00
Hermès Bélusca-Maïto 71a0dd0f0e Forgot this change too.
svn path=/trunk/; revision=67443
2015-04-26 17:50:38 +00:00
Hermès Bélusca-Maïto b4ebdb1ae9 [REACTOS]: Add a "testdata" subdirectory in %SystemRoot%\bin\ where you can put all needed extra files for the tests. In addition, all the files present in your rostests\testdata local directory of your working copy are also copied into %SystemRoot%\bin\testdata .
svn path=/trunk/; revision=67442
2015-04-26 17:47:55 +00:00
Kamil Hornicek d3a6637990 [W32KNAPI]
- NEW_CURSORICON is no more

svn path=/trunk/; revision=67436
2015-04-26 13:17:24 +00:00
Thomas Faber 410d16c399 [NTDLL_APITEST]
- Add a test for NtQueryKey(KeyFullInformation)
CORE-6976

svn path=/trunk/; revision=67414
2015-04-25 15:05:36 +00:00
Thomas Faber c92559c27c [GDI32_APITEST]
- Add a test for NtGdiAddFontResourceW. This goes in gdi32_apitest until we fix w32knapi to be Testman-compatible (ROSTESTS-167). Patch by Víctor Martínez Calvo.
ROSTESTS-166 #resolve

svn path=/trunk/; revision=67391
2015-04-25 10:41:32 +00:00
Thomas Faber bccac1a15b [NTDLL_APITEST]
- Gracefully handle failures in NtMapViewOfSection test. CORE-9189
- Correctly handle unterminated strings in NtQueryKey test. Powered by DPH.

svn path=/trunk/; revision=67370
2015-04-23 18:41:08 +00:00
Thomas Faber 95ebf88866 [NTDLL_APITEST]
- Add some more tests for RtlDoesFileExists_*, in particular passing NT paths
CORE-9523

svn path=/trunk/; revision=67334
2015-04-21 10:50:12 +00:00
Thomas Faber 45c2f87c87 [WIN32K:NTUSER]
- Fix some GetWindowPlacement tests
CORE-9578

svn path=/trunk/; revision=67333
2015-04-21 10:14:12 +00:00
Pierre Schweitzer c45bd159ff [KERNEL32_APITEST]
Force hexa output

svn path=/trunk/; revision=67332
2015-04-21 09:30:05 +00:00
Thomas Faber 842d5b87ea [USER32_APITEST]
- Use correct format specifiers aka fix GCC build

svn path=/trunk/; revision=67331
2015-04-21 09:25:51 +00:00
Thomas Faber ea06801805 [USER32_APITEST]
- Add a test for GetWindowPlacement
CORE-9578

svn path=/trunk/; revision=67330
2015-04-21 09:21:22 +00:00
Thomas Faber e7c17c0741 [NETSHELL][COM_APITEST]
- Remove another MessageBox...
- Also test some more interfaces found in netshell classes

svn path=/trunk/; revision=67316
2015-04-19 22:50:25 +00:00
Thomas Faber a04d175469 [COM_APITEST]
- Add test for netshell classes
- Add some interfaces

svn path=/trunk/; revision=67313
2015-04-19 21:28:09 +00:00
Pierre Schweitzer 2a8f6b6f83 [KERNEL32_APITEST]
Complete a bit more the PrivMoveFileIdentityW tests

svn path=/trunk/; revision=67306
2015-04-19 19:36:42 +00:00
Pierre Schweitzer f033a19054 [KERNEL32_APITEST]
Erm. That wasn't meant to remain here! :-P

svn path=/trunk/; revision=67279
2015-04-18 21:34:12 +00:00
Pierre Schweitzer f656eab188 [KERNEL32_APITEST]
Make PrivMoveFileIdentityW test work even if kernel32_apitest.exe isn't in current directory

svn path=/trunk/; revision=67278
2015-04-18 21:30:15 +00:00
Pierre Schweitzer ad157d2c6f [KERNEL32_APITEST]
Add tests for PrivMoveFileIdentityW().

Tested on w2k3 by Thomas

svn path=/trunk/; revision=67273
2015-04-18 19:46:57 +00:00
Thomas Faber 2829ed5afe [USER32_APITEST]
- Add a test for SetScrollInfo
CORE-9553

svn path=/trunk/; revision=67226
2015-04-17 17:22:07 +00:00
Thomas Faber e69c4796da [KERNEL32_APITEST]
- Make GetDriveType test succeed if the current directory is the drive root. Spotted by Edijs.
- Use strsafe functions
ROSTESTS-160 #resolve

svn path=/trunk/; revision=67222
2015-04-17 08:09:30 +00:00
Thomas Faber f499a92d44 [USER32_APITEST]
- Add a test for CreateDialog. Patch by Andreas Maier.
ROSTESTS-163 #resolve

svn path=/trunk/; revision=67213
2015-04-16 11:35:23 +00:00
Thomas Faber 3233f5f8b3 [USER32_APITEST]
- Rename CreateWindowEx test to SetParent since that's what it tests

svn path=/trunk/; revision=67070
2015-04-06 06:34:04 +00:00
Timo Kreuzer dd4901282a [GDI32_APITEST]
Add/fix some tests for CreateDIBPatternBrush, GetDIBits, PatBlt and SetWindowExtEx

svn path=/trunk/; revision=67051
2015-04-04 15:58:18 +00:00
Timo Kreuzer 4eebb1e0c9 [GDI32_APITEST]
Add some more tests for MaskBlt

svn path=/trunk/; revision=67047
2015-04-04 14:58:17 +00:00