Carlos Rivera
00a0e2cd8c
kernel32/tests: Change file name to avoid collision with other tests.
...
Entries in IniFileMapping are persisted in Windows until the next
reboot, even if removed from the registry. This made the
function test_registry_mapping to cause other tests
that accessed the actual winetest.ini file to fail if the
profile test was run more than once on Windows without rebooting.
Signed-off-by: Carlos Rivera <carlos@superkaos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-01 20:56:44 +02:00
Carlos Rivera
c1c61bf255
kernel32/tests: Remove registry entry left out during test.
...
Signed-off-by: Carlos Rivera <carlos@superkaos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:07 +02:00
Carlos Rivera
13e81421b7
kernel32/tests: Use debugstr_an to show contents of buffer.
...
In the tests modified the buffer to show is expected to contain
strings separated by \0. So that passing the buffer to
the ok macro will only print the first string. Showing the
whole returned buffer gives more information when the test
fails.
Signed-off-by: Carlos Rivera <carlos@superkaos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 21:41:07 +02:00
Zebediah Figura
4ea4289253
kernel32/tests: Add tests for profile registry mapping.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-15 22:55:44 +02:00
Zebediah Figura
22a6c60e18
kernel32/tests: Add tests for profile struct functions.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-22 19:22:03 +02:00
Jacek Caban
313fc40a97
kernel32/tests: Get rid of no longer needed win9x checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:39 +01:00
Claudio Fontana
be678a52e1
kernel32: Allow empty profile section and key name strings.
...
Consider "" a normal section, and fix calculation for zero
length section name string and key name string.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=8036
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18099
Signed-off-by: Claudio Fontana <claudio.fontana@gmail.com>
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-28 19:12:28 +01:00
Sven Baars
b012281cc9
kernel32/tests: Fix a memory leak (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-23 18:23:42 +01:00
Michael Stefaniuc
80be3a460b
kernel32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:02:48 +02:00
Zebediah Figura
43c5fe11cb
kernel32/tests: Fix permission check.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 18:00:21 +01:00
Zhiyi Zhang
aa16304c19
kernel32: Fix handling lines with only values in GetPrivateProfileSection.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-06 09:15:29 -06:00
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