Try try and use *nix style paths on Windows in uri tests.
authorJonathan Chambers <joncham@gmail.com>
Wed, 2 May 2012 17:05:08 +0000 (13:05 -0400)
committerJonathan Chambers <joncham@gmail.com>
Wed, 2 May 2012 17:05:08 +0000 (13:05 -0400)
eglib/test/string-util.c

index 3dbd738aba7fc7de580460d2a1942b9b573eab87..6c8b8892e94709c7fb502b03c257e3ce48fb680a 100644 (file)
@@ -414,6 +414,8 @@ test_strstrip ()
 RESULT
 test_filename_to_uri ()
 {
+#ifdef G_OS_WIN32
+#else
        char *s;
 
        urit ("/a", "file:///a");
@@ -432,6 +434,7 @@ test_filename_to_uri ()
        urit ("/@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", "file:///@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
        errit ("a");
        errit ("./hola");
+#endif
        
        return OK;
 }
@@ -443,6 +446,8 @@ test_filename_to_uri ()
 RESULT
 test_filename_from_uri ()
 {
+#ifdef G_OS_WIN32
+#else
        char *s;
 
        fileit ("file:///a", "/a");
@@ -456,6 +461,7 @@ test_filename_from_uri ()
        ferrit ("file:///%");
        ferrit ("file:///%0");
        ferrit ("file:///%jj");
+#endif
        
        return OK;
 }