From 33223c7d9a80e821bccce25960f7e48ab425d975 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 24 Jun 2019 05:14:07 +0200 Subject: Fix errors from pedantic check --- tests/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index c4c567d..520d8b4 100644 --- a/tests/main.c +++ b/tests/main.c @@ -3,6 +3,7 @@ #include "../include/compiler.h" #include "../include/std/hash_map.h" #include "../include/std/hash.h" +#include "../include/std/log.h" #include #include #include @@ -181,6 +182,7 @@ static void test_load(const char *filepath) { static void test_load_error(const char *filepath, const char *expected_error) { amal_compiler compiler; amal_compiler_options options; + ErrorExpectedData expected_data; int result; int num_threads; @@ -197,7 +199,7 @@ static void test_load_error(const char *filepath, const char *expected_error) { options.num_threads = num_threads; ++num_tests_run; options.error_callback = error_callback_assert; - ErrorExpectedData expected_data; + expected_data.filepath = get_full_path(filepath); expected_data.expected_error = join_str(expected_data.filepath, expected_error, ':'); expected_data.got_expected_error = bool_false; -- cgit v1.2.3