From 14aae264d41203efd6a70ae2c1694c4403a937db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Fri, 8 Feb 2019 20:30:20 +0000 Subject: [PATCH] autoptr test: Use OS-dependent path separator Since GFile canonicalizes the path it is given, expect the '\\' separator on Windows. --- gio/tests/autoptr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/autoptr.c b/gio/tests/autoptr.c index 9ff1428ea..55a1c91fb 100644 --- a/gio/tests/autoptr.c +++ b/gio/tests/autoptr.c @@ -8,7 +8,7 @@ test_autoptr (void) g_autofree gchar *path = g_file_get_path (p); g_autofree gchar *istr = g_inet_address_to_string (a); - g_assert_cmpstr (path, ==, "/blah"); + g_assert_cmpstr (path, ==, G_DIR_SEPARATOR_S "blah"); g_assert_cmpstr (istr, ==, "127.0.0.1"); }