mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
tests: skip read-only-directory test on win32
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
354c454c56
commit
1713dd0a91
@ -1452,6 +1452,8 @@ test_set_contents_full_read_only_file (void)
|
||||
g_free (file_name);
|
||||
}
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
/* windows mostly ignores read-only flagged directoy, chmod doesn't work */
|
||||
static void
|
||||
test_set_contents_full_read_only_directory (void)
|
||||
{
|
||||
@ -1509,6 +1511,7 @@ test_set_contents_full_read_only_directory (void)
|
||||
g_free (dir_name);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
test_read_link (void)
|
||||
@ -2158,7 +2161,9 @@ main (int argc,
|
||||
g_test_add_func ("/fileutils/set-contents", test_set_contents);
|
||||
g_test_add_func ("/fileutils/set-contents-full", test_set_contents_full);
|
||||
g_test_add_func ("/fileutils/set-contents-full/read-only-file", test_set_contents_full_read_only_file);
|
||||
#ifndef G_OS_WIN32
|
||||
g_test_add_func ("/fileutils/set-contents-full/read-only-directory", test_set_contents_full_read_only_directory);
|
||||
#endif
|
||||
g_test_add_func ("/fileutils/read-link", test_read_link);
|
||||
g_test_add_func ("/fileutils/stdio-wrappers", test_stdio_wrappers);
|
||||
g_test_add_func ("/fileutils/fopen-modes", test_fopen_modes);
|
||||
|
Loading…
Reference in New Issue
Block a user