From 0c363c653759ab2b4e25f53b5d74d30ea6df1c08 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Tue, 16 Oct 2018 12:48:43 +0200 Subject: [PATCH] eolian_cxx: PACKAGE_DATA_DIR is completly wrong here Summary: its the define for the directory where data is installed in the fs. Not where to find test data in the tree - TESTS_SRC_DIR is defining the same - however, with this change we are consistent and i dont need to change the meson automatic define generation. Reviewers: segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7163 --- src/tests/eolian_cxx/eolian_cxx_test_documentation.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc b/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc index 3ebdec86bf..4690f45498 100644 --- a/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc +++ b/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc @@ -22,9 +22,9 @@ using efl::eolian::grammar::attributes::struct_def; klass_def init_test_data(efl::eolian::eolian_state const& state) { - ck_assert(::eolian_state_directory_add(state.value, PACKAGE_DATA_DIR)); + ck_assert(::eolian_state_directory_add(state.value, TESTS_SRC_DIR)); ck_assert(::eolian_state_all_eot_files_parse(state.value)); - ck_assert(::eolian_state_file_parse(state.value, PACKAGE_DATA_DIR"/docs.eo")); + ck_assert(::eolian_state_file_parse(state.value, TESTS_SRC_DIR"/docs.eo")); const Eolian_Class *c_klass = ::eolian_state_class_by_name_get(state.value, "Docs"); ck_assert_ptr_ne(c_klass, NULL);