From: Ryan Lortie Date: Mon, 27 May 2013 22:05:09 +0000 (-0400) Subject: tests: fix a srcdir vs. destdir issue X-Git-Tag: 2.37.1~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa3db2c91b254250a84b8c8e07eb3da96fbf74aa;p=platform%2Fupstream%2Fglib.git tests: fix a srcdir vs. destdir issue The target file is a script, so it'll always be in SRCDIR for the uninstalled case. Just look there and avoid the libtool trickery. --- diff --git a/glib/tests/spawn-singlethread.c b/glib/tests/spawn-singlethread.c index 77790a7..4ad91a7 100644 --- a/glib/tests/spawn-singlethread.c +++ b/glib/tests/spawn-singlethread.c @@ -203,12 +203,8 @@ main (int argc, echo_script_path = g_build_filename (dirname, "echo-script", NULL); if (!g_file_test (echo_script_path, G_FILE_TEST_EXISTS)) { - gchar *tmp; - /* strip .libs */ - tmp = g_path_get_dirname (dirname); g_free (echo_script_path); - echo_script_path = g_build_filename (tmp, "echo-script", NULL); - g_free (tmp); + echo_script_path = g_build_filename (SRCDIR, "echo-script", NULL); } g_free (dirname);