autoptr test: Use OS-dependent path separator

Since GFile canonicalizes the path it is given, expect the '\\' separator
on Windows.
This commit is contained in:
Руслан Ижбулатов 2019-02-08 20:30:20 +00:00 committed by Philip Withnall
parent 294d818336
commit 14aae264d4

View File

@ -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");
}