| ... | @@ -406,7 +406,7 @@ fn f() { | ... | @@ -406,7 +406,7 @@ fn f() { |
| 406 | | 406 | |
| 407 | } | 407 | } |
| 408 | | 408 | |
| 409 | static void print_compiler_invokation(TestCase *test_case, Buf *zig_stderr) { | 409 | static void print_compiler_invocation(TestCase *test_case, Buf *zig_stderr) { |
| 410 | printf("%s", zig_exe); | 410 | printf("%s", zig_exe); |
| 411 | for (int i = 0; i < test_case->compiler_args.length; i += 1) { | 411 | for (int i = 0; i < test_case->compiler_args.length; i += 1) { |
| 412 | printf(" %s", test_case->compiler_args.at(i)); | 412 | printf(" %s", test_case->compiler_args.at(i)); |
| ... | @@ -437,21 +437,21 @@ static void run_test(TestCase *test_case) { | ... | @@ -437,21 +437,21 @@ static void run_test(TestCase *test_case) { |
| 437 | printf("========= Expected this compile error: =========\n"); | 437 | printf("========= Expected this compile error: =========\n"); |
| 438 | printf("%s\n", err_text); | 438 | printf("%s\n", err_text); |
| 439 | printf("================================================\n"); | 439 | printf("================================================\n"); |
| 440 | print_compiler_invokation(test_case, &zig_stderr); | 440 | print_compiler_invocation(test_case, &zig_stderr); |
| 441 | exit(1); | 441 | exit(1); |
| 442 | } | 442 | } |
| 443 | } | 443 | } |
| 444 | return; // success | 444 | return; // success |
| 445 | } else { | 445 | } else { |
| 446 | printf("\nCompile failed with return code 0 (Expected failure):\n"); | 446 | printf("\nCompile failed with return code 0 (Expected failure):\n"); |
| 447 | print_compiler_invokation(test_case, &zig_stderr); | 447 | print_compiler_invocation(test_case, &zig_stderr); |
| 448 | exit(1); | 448 | exit(1); |
| 449 | } | 449 | } |
| 450 | } | 450 | } |
| 451 | | 451 | |
| 452 | if (return_code != 0) { | 452 | if (return_code != 0) { |
| 453 | printf("\nCompile failed with return code %d:\n", return_code); | 453 | printf("\nCompile failed with return code %d:\n", return_code); |
| 454 | print_compiler_invokation(test_case, &zig_stderr); | 454 | print_compiler_invocation(test_case, &zig_stderr); |
| 455 | exit(1); | 455 | exit(1); |
| 456 | } | 456 | } |
| 457 | | 457 | |