Commit Graph

57 Commits

Author SHA1 Message Date
Paul Graham 39899fd11a kernel32: Fix failure reporting in WritePrivateProfile* and add tests.
Conformance tests based on work by Fabian Maurer, with some adaptations.

Signed-off-by: Paul Graham <development@omega-software.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:58 +01:00
Francois Gouget f1087d865b kernel32/tests: Skip some profile tests if not allowed to create files in the Windows directory. 2014-03-04 17:06:07 +01:00
Frédéric Delanoy 7215eb2497 kernel32/tests: Unconstify a character string. 2014-01-10 12:04:10 +01:00
Frédéric Delanoy 5f6b0d0027 kernel32/tests: Constify some character strings. 2013-12-24 11:22:52 +01:00
Dmitry Timoshkov f776e879fd kernel32/tests: Fix profile tests compilation with __WINESRC__ defined. 2013-10-22 16:37:39 +02:00
Bruno Jesus 40f0145d00 kernel32: Avoid ini cache if file does not exist anymore. 2012-03-28 11:38:35 +02:00
Bruno Jesus a4e3268886 kernel32/tests: Show that ini cache must not be used if file no longer exists. 2012-03-28 11:38:31 +02:00
André Hentschel 0ba0f505af kernel32/tests: Don't test function directly when reporting GetLastError(). 2011-09-26 18:16:03 +02:00
Austin English 19f58e889f kernel32/tests: Make sure return values are used (LLVM/Clang). 2011-07-26 10:22:47 +02:00
Alexandre Julliard 362ecd06f6 kernel32: Fix handling of overflows in GetPrivateProfileSectionA. 2009-10-08 16:28:17 +02:00
Dmitry Kislyuk c81d1e78f7 kernel32/tests: Pass test on error code returned by Windows 7. 2009-10-05 13:46:01 +02:00
Stefan Leichter 88a019956e kernel32: Test GetPrivateProfileString with empty string as key and section. 2009-08-21 13:49:45 +02:00
Paul Vriens eca3d74877 kernel32/tests: Skip WritePrivateProfileString tests on Win9x/WinME. 2009-06-04 12:11:56 +02:00
Dmitry Kislyuk 8d9434eefe kernel32/tests: Show that NULLs need to be preserved in data before first section. 2009-05-07 15:16:15 +02:00
Dmitry Kislyuk 182e75140e kernel32: Added GetPrivateProfileSection and GetPrivateProfileString tests for empty section scenario. 2009-04-20 17:40:33 +02:00
Paul Vriens 9a10234ef2 kernel32: Fix creation of empty sections in ini files. 2009-04-02 16:28:30 +02:00
Paul Vriens a61e117781 kernel32/tests: Fix some test failures on Win9x and WinME. 2009-03-30 13:58:12 +02:00
Paul Vriens 7eca8022df kernel32/tests: Fix some test failures on NT4 and below. 2009-03-27 15:51:25 +01:00
Paul Vriens 9e82e50eb3 kernel32/tests: Fix crash on NT4 and higher. 2009-03-26 16:21:59 +01:00
James Hawkins 87847b47cd kernel32: Don't try to load an empty initialization file. 2009-03-24 11:37:01 +01:00
James Hawkins 7c3529f1cc kernel32: Handle writing empty sections and keys in WritePrivateProfileString. 2009-03-24 11:36:52 +01:00
James Hawkins f1308f9b40 kernel32: Set last error to ERROR_FILE_NOT_FOUND if lpAppName is NULL. 2009-03-24 11:36:03 +01:00
James Hawkins 287b07fddc kernel32: Add tests for WritePrivateProfileString. 2009-03-24 11:35:52 +01:00
Paul Vriens 047a43f084 kernel32/tests: Fix remaining failures on Win9x and WinME. 2009-02-02 12:12:24 +01:00
Paul Vriens a8c24d343c kernel32/tests: Fix some test failures on Win9x and WinME. 2009-02-02 12:12:16 +01:00
Paul Vriens 2bac661c2f kernel32/tests: Fix some tests on Win9x and WinME (GetPrivateProfileSection). 2009-02-02 12:12:09 +01:00
Paul Vriens b7b59236cf kernel32/tests: Fill the buffer and check for double-NULL to show a bug in Wine. 2009-02-02 12:12:03 +01:00
Paul Vriens 8236f362ff kernel32/tests: Fix some test failures on Win9x and WinME. 2009-01-30 11:43:21 +01:00
Paul Vriens a21ea16f90 kernel32/tests: Skip some tests on Win9x and WinME. 2009-01-30 11:43:16 +01:00
Paul Vriens 407f0d9f56 kernel32/tests: Fix some test failures on Win9x and WinME (GetPrivateProfileString). 2009-01-29 12:19:35 +01:00
Paul Vriens 48f035bd4c kernel32/tests: Fix some test failures on Win9x and WinME (GetPrivateProfileSectionNames). 2009-01-29 12:19:29 +01:00
Paul Vriens 7099cdebd5 kernel32/tests: Fix some test failures on several platforms. 2009-01-29 12:19:19 +01:00
Paul Vriens cca75cc147 kernel32/tests: Don't crash when run as a normal user. 2009-01-28 12:32:22 +01:00
Paul Vriens dda0fe451d kernel32/tests: Fill the buffer to show a bug in Wine. 2009-01-28 12:32:05 +01:00
Alasdair Sinclair 116886cf0a kernel32/tests: Fix missing void in empty parameter list. 2009-01-28 12:10:55 +01:00
Alexandre Julliard 181e4f08b6 kernel32/tests: Fix some profile test failures on NT4. 2008-11-10 11:09:02 +01:00
Erik Inge Bolsø e8754b8ea6 kernel32: Fix PROFILE_Load to handle mac line endings. 2008-09-23 13:07:40 +02:00
Dmitry Timoshkov 4d672ba090 kernel32: Use a kernel error code. 2008-09-11 11:46:02 +02:00
Michael Karcher 34aa6b7002 kernel32: Fix profile cache logic and don't cache new files. 2008-08-20 14:56:15 +02:00
Michael Karcher c2a26cee16 kernel32/tests: Fix profile crash on NT and up. 2008-08-19 15:19:29 +02:00
Michael Karcher 33ca67dcab kernel32: Fix profile sharing mode.
Based on a patch from Austin English.
2008-08-18 17:15:56 +02:00
Francois Gouget a793888a28 Assorted spelling fixes. 2008-08-04 13:04:48 +02:00
Detlef Riekenberg 5437f4ce9c kernel32/tests: Fix a crash on win9x (lpDefault is truncated inplace). 2008-07-28 11:35:38 +02:00
James Hawkins 3fb196fb57 kernel32: Return the default value if lpKeyName is empty. 2008-07-17 11:38:19 +02:00
James Hawkins 7e9df53f38 kernel32: Fix removing trailing spaces from lpDefault for GetPrivateProfileString. 2008-07-17 11:37:55 +02:00
James Hawkins e5705eae84 kernel32: Add tests for GetPrivateProfileString. 2008-07-17 11:37:02 +02:00
Alexandre Julliard 284335229a kernel32: Don't require write access on profile file when only reading. 2008-05-22 12:15:37 +02:00
Alexandre Julliard 1dcaddee99 kernel32: Add some test cases for profile file sharing modes.
Based on a patch by Louis Lenders.
2008-05-21 14:23:44 +02:00
Paul Vriens 7a6fbf2b09 kernel32/tests: Add a forgotten if statement. 2007-07-09 11:46:22 +02:00
Paul Vriens 35edd40f33 kernel32/tests 2/2: Use skip for not implemented function. 2007-07-05 19:54:26 +02:00