[glib: 6/7] tests/filutils: remove an mkdir expected to fail test on win32




commit 743cd659f4ef814153445df93e2e68b5a2b85a3a
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Tue Mar 22 00:14:41 2022 +0400

    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>

 glib/tests/fileutils.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index e0ade532d5..aac1cb3f83 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]