mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
tests/filutils: remove an mkdir expected to fail test on win32
When running under msys2 (and supposedly cygwin), the root path is remapped and permissions are permissive, the test doesn't fail. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
bd45147077
commit
743cd659f4
@ -749,9 +749,7 @@ test_mkdir_with_parents (void)
|
||||
g_assert_cmpint (g_mkdir_with_parents ("./test", 0), ==, 0);
|
||||
g_remove ("./test");
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
g_assert_cmpint (g_mkdir_with_parents ("\\Windows\\b\\c", 0), ==, -1);
|
||||
#else
|
||||
#ifndef G_OS_WIN32
|
||||
g_assert_cmpint (g_mkdir_with_parents ("/usr/b/c", 0), ==, -1);
|
||||
/* EPERM may be returned if the filesystem as a whole is read-only */
|
||||
if (errno != EPERM)
|
||||
|
Loading…
Reference in New Issue
Block a user