summaryrefslogtreecommitdiffstats
path: root/src/test/test-journal-importer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-journal-importer.c')
-rw-r--r--src/test/test-journal-importer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-journal-importer.c b/src/test/test-journal-importer.c
index 7e898735c9..4883356956 100644
--- a/src/test/test-journal-importer.c
+++ b/src/test/test-journal-importer.c
@@ -25,7 +25,7 @@ static void test_basic_parsing(void) {
_cleanup_free_ char *journal_data_path = NULL;
int r;
- journal_data_path = path_join(get_testdata_dir(), "journal-data/journal-1.txt");
+ assert_se(get_testdata_dir("journal-data/journal-1.txt", &journal_data_path) >= 0);
imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC);
assert_se(imp.fd >= 0);
@@ -56,7 +56,7 @@ static void test_bad_input(void) {
_cleanup_free_ char *journal_data_path = NULL;
int r;
- journal_data_path = path_join(get_testdata_dir(), "journal-data/journal-2.txt");
+ assert_se(get_testdata_dir("journal-data/journal-1.txt", &journal_data_path) >= 0);
imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC);
assert_se(imp.fd >= 0);