mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
tests: fix test_set_contents_full error test on win32
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
a4e302f503
commit
5f4e8f625d
@ -1241,8 +1241,11 @@ test_set_contents_full (void)
|
|||||||
{ EXISTING_FILE_REGULAR, 0644, FALSE, TRUE, 0 },
|
{ EXISTING_FILE_REGULAR, 0644, FALSE, TRUE, 0 },
|
||||||
#ifndef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
{ EXISTING_FILE_SYMLINK, 0644, FALSE, TRUE, 0 },
|
{ EXISTING_FILE_SYMLINK, 0644, FALSE, TRUE, 0 },
|
||||||
#endif
|
|
||||||
{ EXISTING_FILE_DIRECTORY, 0644, FALSE, FALSE, G_FILE_ERROR_ISDIR },
|
{ EXISTING_FILE_DIRECTORY, 0644, FALSE, FALSE, G_FILE_ERROR_ISDIR },
|
||||||
|
#else
|
||||||
|
/* on win32, _wopen returns EACCES if path is a directory */
|
||||||
|
{ EXISTING_FILE_DIRECTORY, 0644, FALSE, FALSE, G_FILE_ERROR_ACCES },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
gsize i;
|
gsize i;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user