diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-06-24 05:14:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 33223c7d9a80e821bccce25960f7e48ab425d975 (patch) | |
tree | 8ac99827261dbc935198ac467212b7ce41cf925e /tests | |
parent | abe41cc2d5413faa8adeb16831f654435b6d0ef0 (diff) |
Fix errors from pedantic check
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; |