[glib: 4/8] autoptr test: Use OS-dependent path separator
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/8] autoptr test: Use OS-dependent path separator
- Date: Wed, 13 Feb 2019 10:40:42 +0000 (UTC)
commit 14aae264d41203efd6a70ae2c1694c4403a937db
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Fri Feb 8 20:30:20 2019 +0000
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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]