authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-12-03 12:25:27-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-12-03 12:25:27-07:00
log90565a5109116f0c689215d28ea14d3f4d046c81
tree60ae9c8a38e0fad9734092a4f16b48d500609327
parent22fccdbb0d771897568dd6f1603102007a5d2c5b

correkt spelling error


1 files changed, 4 insertions(+), 4 deletions(-)

test/run_tests.cpp+4-4
...@@ -406,7 +406,7 @@ fn f() {...@@ -406,7 +406,7 @@ fn f() {
406406
407}407}
408408
409static void print_compiler_invokation(TestCase *test_case, Buf *zig_stderr) {409static 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; // success444 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 }
451451
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 }
457457