diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -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; |