From b1081cccb90fbe4cd859d3280a0470c30dce5cac Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Thu, 24 Mar 2016 16:28:02 -0400 Subject: [PATCH] recur.c, testvcal.c - use TEST_DATADIR to point to the test data thereby fixing in-source building ISSUE#228 https://bugs.gentoo.org/show_bug.cgi?id=532296 --- src/test/recur.c | 2 +- src/test/testvcal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/recur.c b/src/test/recur.c index d427137a..873ec48a 100644 --- a/src/test/recur.c +++ b/src/test/recur.c @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) #endif if (argc <= 1) { - file = "../../test-data/recur.txt"; + file = TEST_DATADIR "/recur.txt"; } else if (argc == 2) { file = argv[1]; } else { diff --git a/src/test/testvcal.c b/src/test/testvcal.c index feee8147..024bbe99 100644 --- a/src/test/testvcal.c +++ b/src/test/testvcal.c @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) char *file; if (argc != 2) { - file = "../../test-data/user-cal.vcf"; + file = TEST_DATADIR "/user-cal.vcf"; } else { file = argv[1]; }