[glib/wip/gmain: 4/8] spawn-multithreaded: Also look for lt-test-echo



commit dc744bbd6bb9d9f8d17057161ea81d852c06cce2
Author: Colin Walters <walters verbum org>
Date:   Fri Jun 10 07:27:29 2011 -0400

    spawn-multithreaded: Also look for lt-test-echo
    
    I hate libtool =(

 gthread/tests/spawn-multithreaded.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gthread/tests/spawn-multithreaded.c b/gthread/tests/spawn-multithreaded.c
index 29b83e9..d31cb3b 100644
--- a/gthread/tests/spawn-multithreaded.c
+++ b/gthread/tests/spawn-multithreaded.c
@@ -220,6 +220,11 @@ main (int   argc,
 
   dirname = g_path_get_dirname (argv[0]);
   echo_prog_path = g_build_filename (dirname, "test-spawn-echo", NULL);
+  if (!g_file_test (echo_prog_path, G_FILE_TEST_EXISTS))
+    {
+      g_free (echo_prog_path);
+      echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo", NULL);
+    }
   g_free (dirname);
 
   g_assert (g_file_test (echo_prog_path, G_FILE_TEST_EXISTS));



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