return FAILED ("1 Got wrong result, got: %s", s);
g_free (s);
- s = g_build_filename ("/", "a", NULL);
#ifdef G_OS_WIN32
- if (strcmp (s, "\\a") != 0)
+ s = g_build_filename ("C:\\", "a", NULL);
+ if (strcmp (s, "C:\\a") != 0)
#else
+ s = g_build_filename ("/", "a", NULL);
if (strcmp (s, "/a") != 0)
#endif
return FAILED ("1 Got wrong result, got: %s", s);
-#ifndef OS_WIN32
+#ifndef G_OS_WIN32
s = g_build_filename ("/", "foo", "/bar", "tolo/", "/meo/", NULL);
if (strcmp (s, "/foo/bar/tolo/meo/") != 0)
return FAILED ("1 Got wrong result, got: %s", s);