| ... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
| 9 | #include "buffer.hpp" | 9 | #include "buffer.hpp" |
| 10 | #include "os.hpp" | 10 | #include "os.hpp" |
| 11 | #include "error.hpp" | 11 | #include "error.hpp" |
| | 12 | #include "config.h" |
| 12 | | 13 | |
| 13 | #include <stdio.h> | 14 | #include <stdio.h> |
| 14 | #include <stdarg.h> | 15 | #include <stdarg.h> |
| ... | @@ -1831,11 +1832,15 @@ struct type { | ... | @@ -1831,11 +1832,15 @@ struct type { |
| 1831 | } | 1832 | } |
| 1832 | | 1833 | |
| 1833 | static void run_self_hosted_test(bool is_release_mode) { | 1834 | static void run_self_hosted_test(bool is_release_mode) { |
| | 1835 | Buf self_hosted_tests_file = BUF_INIT; |
| | 1836 | os_path_join(buf_create_from_str(ZIG_TEST_DIR), |
| | 1837 | buf_create_from_str("self_hosted.zig"), &self_hosted_tests_file); |
| | 1838 | |
| 1834 | Buf zig_stderr = BUF_INIT; | 1839 | Buf zig_stderr = BUF_INIT; |
| 1835 | Buf zig_stdout = BUF_INIT; | 1840 | Buf zig_stdout = BUF_INIT; |
| 1836 | ZigList<const char *> args = {0}; | 1841 | ZigList<const char *> args = {0}; |
| 1837 | args.append("test"); | 1842 | args.append("test"); |
| 1838 | args.append("../test/self_hosted.zig"); | 1843 | args.append(buf_ptr(&self_hosted_tests_file)); |
| 1839 | if (is_release_mode) { | 1844 | if (is_release_mode) { |
| 1840 | args.append("--release"); | 1845 | args.append("--release"); |
| 1841 | } | 1846 | } |