forked from enlightenment/efl
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
This commit is contained in:
parent
adcaa8b82b
commit
0c363c6537
|
@ -22,9 +22,9 @@ using efl::eolian::grammar::attributes::struct_def;
|
||||||
|
|
||||||
klass_def init_test_data(efl::eolian::eolian_state const& state)
|
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_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");
|
const Eolian_Class *c_klass = ::eolian_state_class_by_name_get(state.value, "Docs");
|
||||||
ck_assert_ptr_ne(c_klass, NULL);
|
ck_assert_ptr_ne(c_klass, NULL);
|
||||||
|
|
Loading…
Reference in New Issue