[gjs] Fix the determination of top_builddir



commit 41a1d7ed468d2fcd136d451953bb02a9eebfb254
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Aug 24 18:30:28 2009 -0400

    Fix the determination of top_builddir
    
    g_path_get_basename() was used not g_path_get_dirname(); not sure how
    this passed my earlier testing.

 test/gjs-unit.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/test/gjs-unit.c b/test/gjs-unit.c
index 26fd59c..6fa2e75 100644
--- a/test/gjs-unit.c
+++ b/test/gjs-unit.c
@@ -121,7 +121,8 @@ main(int argc, char **argv)
     else
         gjs_unit_path = g_build_filename(working_dir, argv[0], NULL);
 
-    gjs_unit_dir = g_path_get_basename(gjs_unit_path);
+    gjs_unit_dir = g_path_get_dirname(gjs_unit_path);
+    /* the gjs-unit executable will be in <top_builddir>/.libs */
     top_builddir = g_build_filename(gjs_unit_dir, "..", NULL);
     top_srcdir = g_build_filename(top_builddir, GJS_TOP_SRCDIR, NULL);
 



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