mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 14:49:16 +02:00
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.
This commit is contained in:
parent
ad2716bb1a
commit
aa3db2c91b
@ -203,12 +203,8 @@ main (int argc,
|
|||||||
echo_script_path = g_build_filename (dirname, "echo-script", NULL);
|
echo_script_path = g_build_filename (dirname, "echo-script", NULL);
|
||||||
if (!g_file_test (echo_script_path, G_FILE_TEST_EXISTS))
|
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);
|
g_free (echo_script_path);
|
||||||
echo_script_path = g_build_filename (tmp, "echo-script", NULL);
|
echo_script_path = g_build_filename (SRCDIR, "echo-script", NULL);
|
||||||
g_free (tmp);
|
|
||||||
}
|
}
|
||||||
g_free (dirname);
|
g_free (dirname);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user