summaryrefslogtreecommitdiff
path: root/src/tests/eolian/eolian_generation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eolian/eolian_generation.c')
-rw-r--r--src/tests/eolian/eolian_generation.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/tests/eolian/eolian_generation.c b/src/tests/eolian/eolian_generation.c
index 0607269305..fe4e55121e 100644
--- a/src/tests/eolian/eolian_generation.c
+++ b/src/tests/eolian/eolian_generation.c
@@ -83,21 +83,10 @@ _remove_ref(const char *base, const char *ext)
83static int 83static int
84_eolian_gen_execute(const char *eo_filename, const char *options, const char *output_filename) 84_eolian_gen_execute(const char *eo_filename, const char *options, const char *output_filename)
85{ 85{
86 char eolian_gen_path[PATH_MAX] = "";
87 char command[PATH_MAX]; 86 char command[PATH_MAX];
88
89 if (getenv("EFL_RUN_IN_TREE"))
90 {
91 snprintf(eolian_gen_path, sizeof(eolian_gen_path),
92 "%s/src/bin/eolian/eolian_gen%s",
93 PACKAGE_BUILD_DIR, EXEEXT);
94 }
95 if (eolian_gen_path[0] == '\0')
96 return -1;
97
98 snprintf(command, PATH_MAX, 87 snprintf(command, PATH_MAX,
99 "%s %s -I \""PACKAGE_DATA_DIR"/data\" -o %s %s", 88 EOLIAN_GEN" %s -I \""PACKAGE_DATA_DIR"/data\" -o %s %s",
100 eolian_gen_path, options, output_filename, eo_filename); 89 options, output_filename, eo_filename);
101 return system(command); 90 return system(command);
102} 91}
103 92