[libpeas/msvc: 7/8] tests/libpeas/plugin-info.c: Use G_DIR_SEPARATOR_S
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas/msvc: 7/8] tests/libpeas/plugin-info.c: Use G_DIR_SEPARATOR_S
- Date: Wed, 17 Oct 2018 08:33:55 +0000 (UTC)
commit 7c02af483c52c1620ed8ca2126d8017ad2c04423
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Oct 17 10:10:15 2018 +0800
tests/libpeas/plugin-info.c: Use G_DIR_SEPARATOR_S
When we get the subdir of tests/plugins, it will be returned with the
platform-specific directory separator, so use G_DIR_SEPARATOR_S so that
we can cope with that properly.
tests/libpeas/plugin-info.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c
index 693a0cd..d862876 100644
--- a/tests/libpeas/plugin-info.c
+++ b/tests/libpeas/plugin-info.c
@@ -73,7 +73,7 @@ test_plugin_info_verify_full_info (PeasEngine *engine)
g_assert_cmpstr (peas_plugin_info_get_module_name (info), ==, "full-info");
g_assert (g_str_has_suffix (peas_plugin_info_get_module_dir (info), "/tests/plugins"));
- g_assert (g_str_has_suffix (peas_plugin_info_get_data_dir (info), "/tests/plugins/full-info"));
+ g_assert (g_str_has_suffix (peas_plugin_info_get_data_dir (info), "/tests/plugins" G_DIR_SEPARATOR_S
"full-info"));
g_assert_cmpstr (peas_plugin_info_get_dependencies (info)[0], ==, "something");
g_assert_cmpstr (peas_plugin_info_get_dependencies (info)[1], ==, "something-else");
@@ -111,7 +111,7 @@ test_plugin_info_verify_min_info (PeasEngine *engine)
g_assert_cmpstr (peas_plugin_info_get_module_name (info), ==, "min-info");
g_assert (g_str_has_suffix (peas_plugin_info_get_module_dir (info), "/tests/plugins"));
- g_assert (g_str_has_suffix (peas_plugin_info_get_data_dir (info), "/tests/plugins/min-info"));
+ g_assert (g_str_has_suffix (peas_plugin_info_get_data_dir (info), "/tests/plugins" G_DIR_SEPARATOR_S
"min-info"));
g_assert_cmpstr (peas_plugin_info_get_dependencies (info)[0], ==, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]