diff options
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index a0fa1c7ad4..95fc6fc3d4 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -9,6 +9,7 @@ #include "buffer.hpp" #include "os.hpp" #include "error.hpp" +#include "config.h" #include <stdio.h> #include <stdarg.h> @@ -1831,11 +1832,15 @@ struct type { } static void run_self_hosted_test(bool is_release_mode) { + Buf self_hosted_tests_file = BUF_INIT; + os_path_join(buf_create_from_str(ZIG_TEST_DIR), + buf_create_from_str("self_hosted.zig"), &self_hosted_tests_file); + Buf zig_stderr = BUF_INIT; Buf zig_stdout = BUF_INIT; ZigList<const char *> args = {0}; args.append("test"); - args.append("../test/self_hosted.zig"); + args.append(buf_ptr(&self_hosted_tests_file)); if (is_release_mode) { args.append("--release"); } |
