diff --git a/elm_code/bin/elm_code_test_main.c b/elm_code/bin/elm_code_test_main.c index e81a4e5..0bb6092 100644 --- a/elm_code/bin/elm_code_test_main.c +++ b/elm_code/bin/elm_code_test_main.c @@ -72,10 +72,12 @@ _elm_code_test_welcome_setup(Evas_Object *parent) static Evas_Object * _elm_code_test_diff_setup(Evas_Object *parent) { - char *path = "elm_code/tests/testdiff.diff"; + char path[PATH_MAX]; Evas_Object *diff; Elm_Code *code; + snprintf(path, sizeof(path), "%s/../edi/data/testdiff.diff", elm_app_data_dir_get()); + code = elm_code_create(); elm_code_file_open(code, path); diff --git a/elm_code/tests/Makefile.am b/elm_code/tests/Makefile.am index d1edb30..2f63f38 100644 --- a/elm_code/tests/Makefile.am +++ b/elm_code/tests/Makefile.am @@ -23,4 +23,7 @@ elm_code_suite_DEPENDENCIES = $(top_builddir)/elm_code/lib/libelm_code.la endif -EXTRA_DIST = elm_code_suite.h +testdir = $(datadir)/$(PACKAGE)/data +test_DATA = testdiff.diff + +EXTRA_DIST = elm_code_suite.h $(test_DATA)