Skip to content

Commit

Permalink
lib-dict: Fix test-dict-sql in out-of-tree build
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Jan 25, 2017
1 parent ef6a5a1 commit bcf421b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-dict/Makefile.am
Expand Up @@ -99,7 +99,7 @@ test_dict_client_SOURCES = test-dict-client.c
test_dict_client_LDADD = $(noinst_LTLIBRARIES) ../lib/liblib.la
test_dict_client_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs)

test_dict_sql_CFLAGS = $(AM_CPPFLAGS)
test_dict_sql_CFLAGS = $(AM_CPPFLAGS) -DDICT_SRC_DIR=\"$(top_srcdir)/src/lib-dict\"
test_dict_sql_SOURCES = \
test-dict-sql.c
test_dict_sql_LDADD = \
Expand Down
2 changes: 1 addition & 1 deletion src/lib-dict/test-dict-sql.c
Expand Up @@ -16,7 +16,7 @@ static void test_setup(struct dict **dict_r)
};
struct dict *dict = NULL;

if (dict_init("mysql:dict.conf", &set, &dict, &error) < 0)
if (dict_init("mysql:" DICT_SRC_DIR "/dict.conf", &set, &dict, &error) < 0)
i_fatal("cannot initialize dict: %s", error);

*dict_r = dict;
Expand Down

0 comments on commit bcf421b

Please sign in to comment.