[libpeas/msvc] tests/libpeas/testing/testing.c: Use G_DIR_SEPARATOR_S



commit 6001e9fe3034d637fff1a118e70e97c3ea4d6e01
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Oct 17 01:04:33 2018 +0800

    tests/libpeas/testing/testing.c: Use G_DIR_SEPARATOR_S
    
    We could be on Windows, so we can't just assume '/' to be our path
    separator, so we use G_DIR_SEPARATOR_S, which will take care of things
    and avoid false positives.

 tests/libpeas/testing/testing.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index 1d06dcd..49b94f3 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -77,10 +77,10 @@ testing_engine_new_full (gboolean nonglobal_loaders)
   testing_util_push_log_hook ("*Error loading *unkown-loader.plugin*");
 
   testing_util_push_log_hook ("Bad plugin file '"
-                              BUILDDIR "*/embedded*.plugin': "
+                              BUILDDIR "*" G_DIR_SEPARATOR_S "embedded*.plugin': "
                               "embedded plugins must be a resource");
   testing_util_push_log_hook ("Error loading '"
-                              BUILDDIR "*/embedded*.plugin'*");
+                              BUILDDIR "*" G_DIR_SEPARATOR_S "embedded*.plugin'*");
 
   testing_util_push_log_hook ("Bad plugin file '"
                               BUILDDIR "*embedded-invalid-loader.plugin': "


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]