mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02: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:
committed by
Philip Withnall
parent
bd45147077
commit
743cd659f4
@@ -749,9 +749,7 @@ test_mkdir_with_parents (void)
|
|||||||
g_assert_cmpint (g_mkdir_with_parents ("./test", 0), ==, 0);
|
g_assert_cmpint (g_mkdir_with_parents ("./test", 0), ==, 0);
|
||||||
g_remove ("./test");
|
g_remove ("./test");
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
g_assert_cmpint (g_mkdir_with_parents ("\\Windows\\b\\c", 0), ==, -1);
|
|
||||||
#else
|
|
||||||
g_assert_cmpint (g_mkdir_with_parents ("/usr/b/c", 0), ==, -1);
|
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 */
|
/* EPERM may be returned if the filesystem as a whole is read-only */
|
||||||
if (errno != EPERM)
|
if (errno != EPERM)
|
||||||
|
Reference in New Issue
Block a user