| ... | @@ -13,7 +13,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -13,7 +13,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 13 | .Debug = .{ | 13 | .Debug = .{ |
| 14 | .expect = | 14 | .expect = |
| 15 | \\error: TheSkyIsFalling | 15 | \\error: TheSkyIsFalling |
| 16 | \\source.zig:2:5: [address] in main (test) | 16 | \\source.zig:2:5: [address] in main ([main_file]) |
| 17 | \\ return error.TheSkyIsFalling; | 17 | \\ return error.TheSkyIsFalling; |
| 18 | \\ ^ | 18 | \\ ^ |
| 19 | \\ | 19 | \\ |
| ... | @@ -61,10 +61,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -61,10 +61,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 61 | .Debug = .{ | 61 | .Debug = .{ |
| 62 | .expect = | 62 | .expect = |
| 63 | \\error: TheSkyIsFalling | 63 | \\error: TheSkyIsFalling |
| 64 | \\source.zig:2:5: [address] in foo (test) | 64 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 65 | \\ return error.TheSkyIsFalling; | 65 | \\ return error.TheSkyIsFalling; |
| 66 | \\ ^ | 66 | \\ ^ |
| 67 | \\source.zig:6:5: [address] in main (test) | 67 | \\source.zig:6:5: [address] in main ([main_file]) |
| 68 | \\ try foo(); | 68 | \\ try foo(); |
| 69 | \\ ^ | 69 | \\ ^ |
| 70 | \\ | 70 | \\ |
| ... | @@ -120,7 +120,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -120,7 +120,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 120 | .Debug = .{ | 120 | .Debug = .{ |
| 121 | .expect = | 121 | .expect = |
| 122 | \\error: UnrelatedError | 122 | \\error: UnrelatedError |
| 123 | \\source.zig:13:5: [address] in main (test) | 123 | \\source.zig:13:5: [address] in main ([main_file]) |
| 124 | \\ return error.UnrelatedError; | 124 | \\ return error.UnrelatedError; |
| 125 | \\ ^ | 125 | \\ ^ |
| 126 | \\ | 126 | \\ |
| ... | @@ -172,7 +172,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -172,7 +172,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 172 | .Debug = .{ | 172 | .Debug = .{ |
| 173 | .expect = | 173 | .expect = |
| 174 | \\error: UnrelatedError | 174 | \\error: UnrelatedError |
| 175 | \\source.zig:10:5: [address] in main (test) | 175 | \\source.zig:10:5: [address] in main ([main_file]) |
| 176 | \\ return error.UnrelatedError; | 176 | \\ return error.UnrelatedError; |
| 177 | \\ ^ | 177 | \\ ^ |
| 178 | \\ | 178 | \\ |
| ... | @@ -224,10 +224,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -224,10 +224,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 224 | .Debug = .{ | 224 | .Debug = .{ |
| 225 | .expect = | 225 | .expect = |
| 226 | \\error: TheSkyIsFalling | 226 | \\error: TheSkyIsFalling |
| 227 | \\source.zig:2:5: [address] in foo (test) | 227 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 228 | \\ return error.TheSkyIsFalling; | 228 | \\ return error.TheSkyIsFalling; |
| 229 | \\ ^ | 229 | \\ ^ |
| 230 | \\source.zig:10:5: [address] in main (test) | 230 | \\source.zig:10:5: [address] in main ([main_file]) |
| 231 | \\ try foo(); | 231 | \\ try foo(); |
| 232 | \\ ^ | 232 | \\ ^ |
| 233 | \\ | 233 | \\ |
| ... | @@ -284,7 +284,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -284,7 +284,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 284 | .Debug = .{ | 284 | .Debug = .{ |
| 285 | .expect = | 285 | .expect = |
| 286 | \\error: BadTime | 286 | \\error: BadTime |
| 287 | \\source.zig:12:5: [address] in main (test) | 287 | \\source.zig:12:5: [address] in main ([main_file]) |
| 288 | \\ return error.BadTime; | 288 | \\ return error.BadTime; |
| 289 | \\ ^ | 289 | \\ ^ |
| 290 | \\ | 290 | \\ |
| ... | @@ -332,10 +332,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -332,10 +332,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 332 | .Debug = .{ | 332 | .Debug = .{ |
| 333 | .expect = | 333 | .expect = |
| 334 | \\error: AndMyCarIsOutOfGas | 334 | \\error: AndMyCarIsOutOfGas |
| 335 | \\source.zig:2:5: [address] in foo (test) | 335 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 336 | \\ return error.TheSkyIsFalling; | 336 | \\ return error.TheSkyIsFalling; |
| 337 | \\ ^ | 337 | \\ ^ |
| 338 | \\source.zig:6:5: [address] in main (test) | 338 | \\source.zig:6:5: [address] in main ([main_file]) |
| 339 | \\ return foo() catch error.AndMyCarIsOutOfGas; | 339 | \\ return foo() catch error.AndMyCarIsOutOfGas; |
| 340 | \\ ^ | 340 | \\ ^ |
| 341 | \\ | 341 | \\ |
| ... | @@ -391,7 +391,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -391,7 +391,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 391 | .Debug = .{ | 391 | .Debug = .{ |
| 392 | .expect = | 392 | .expect = |
| 393 | \\error: SomethingUnrelatedWentWrong | 393 | \\error: SomethingUnrelatedWentWrong |
| 394 | \\source.zig:11:5: [address] in main (test) | 394 | \\source.zig:11:5: [address] in main ([main_file]) |
| 395 | \\ return error.SomethingUnrelatedWentWrong; | 395 | \\ return error.SomethingUnrelatedWentWrong; |
| 396 | \\ ^ | 396 | \\ ^ |
| 397 | \\ | 397 | \\ |
| ... | @@ -456,13 +456,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -456,13 +456,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 456 | .Debug = .{ | 456 | .Debug = .{ |
| 457 | .expect = | 457 | .expect = |
| 458 | \\error: StillUnresolved | 458 | \\error: StillUnresolved |
| 459 | \\source.zig:1:18: [address] in foo (test) | 459 | \\source.zig:1:18: [address] in foo ([main_file]) |
| 460 | \\fn foo() !void { return error.TheSkyIsFalling; } | 460 | \\fn foo() !void { return error.TheSkyIsFalling; } |
| 461 | \\ ^ | 461 | \\ ^ |
| 462 | \\source.zig:2:18: [address] in bar (test) | 462 | \\source.zig:2:18: [address] in bar ([main_file]) |
| 463 | \\fn bar() !void { return error.InternalError; } | 463 | \\fn bar() !void { return error.InternalError; } |
| 464 | \\ ^ | 464 | \\ ^ |
| 465 | \\source.zig:23:5: [address] in main (test) | 465 | \\source.zig:23:5: [address] in main ([main_file]) |
| 466 | \\ return error.StillUnresolved; | 466 | \\ return error.StillUnresolved; |
| 467 | \\ ^ | 467 | \\ ^ |
| 468 | \\ | 468 | \\ |
| ... | @@ -527,13 +527,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -527,13 +527,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 527 | .Debug = .{ | 527 | .Debug = .{ |
| 528 | .expect = | 528 | .expect = |
| 529 | \\error: TestExpectedError | 529 | \\error: TestExpectedError |
| 530 | \\source.zig:9:18: [address] in foo (test) | 530 | \\source.zig:9:18: [address] in foo ([main_file]) |
| 531 | \\fn foo() !void { return error.Foo; } | 531 | \\fn foo() !void { return error.Foo; } |
| 532 | \\ ^ | 532 | \\ ^ |
| 533 | \\source.zig:5:5: [address] in expectError (test) | 533 | \\source.zig:5:5: [address] in expectError ([main_file]) |
| 534 | \\ return error.TestExpectedError; | 534 | \\ return error.TestExpectedError; |
| 535 | \\ ^ | 535 | \\ ^ |
| 536 | \\source.zig:17:5: [address] in main (test) | 536 | \\source.zig:17:5: [address] in main ([main_file]) |
| 537 | \\ try expectError(error.Bar, foo()); | 537 | \\ try expectError(error.Bar, foo()); |
| 538 | \\ ^ | 538 | \\ ^ |
| 539 | \\ | 539 | \\ |
| ... | @@ -592,13 +592,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -592,13 +592,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 592 | .Debug = .{ | 592 | .Debug = .{ |
| 593 | .expect = | 593 | .expect = |
| 594 | \\error: AndMyCarIsOutOfGas | 594 | \\error: AndMyCarIsOutOfGas |
| 595 | \\source.zig:2:5: [address] in foo (test) | 595 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 596 | \\ return error.TheSkyIsFalling; | 596 | \\ return error.TheSkyIsFalling; |
| 597 | \\ ^ | 597 | \\ ^ |
| 598 | \\source.zig:6:5: [address] in bar (test) | 598 | \\source.zig:6:5: [address] in bar ([main_file]) |
| 599 | \\ return error.AndMyCarIsOutOfGas; | 599 | \\ return error.AndMyCarIsOutOfGas; |
| 600 | \\ ^ | 600 | \\ ^ |
| 601 | \\source.zig:11:9: [address] in main (test) | 601 | \\source.zig:11:9: [address] in main ([main_file]) |
| 602 | \\ try bar(); | 602 | \\ try bar(); |
| 603 | \\ ^ | 603 | \\ ^ |
| 604 | \\ | 604 | \\ |
| ... | @@ -657,13 +657,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -657,13 +657,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 657 | .Debug = .{ | 657 | .Debug = .{ |
| 658 | .expect = | 658 | .expect = |
| 659 | \\error: AndMyCarIsOutOfGas | 659 | \\error: AndMyCarIsOutOfGas |
| 660 | \\source.zig:2:5: [address] in foo (test) | 660 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 661 | \\ return error.TheSkyIsFalling; | 661 | \\ return error.TheSkyIsFalling; |
| 662 | \\ ^ | 662 | \\ ^ |
| 663 | \\source.zig:6:5: [address] in bar (test) | 663 | \\source.zig:6:5: [address] in bar ([main_file]) |
| 664 | \\ return error.AndMyCarIsOutOfGas; | 664 | \\ return error.AndMyCarIsOutOfGas; |
| 665 | \\ ^ | 665 | \\ ^ |
| 666 | \\source.zig:11:9: [address] in main (test) | 666 | \\source.zig:11:9: [address] in main ([main_file]) |
| 667 | \\ try bar(); | 667 | \\ try bar(); |
| 668 | \\ ^ | 668 | \\ ^ |
| 669 | \\ | 669 | \\ |
| ... | @@ -724,16 +724,16 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -724,16 +724,16 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 724 | .Debug = .{ | 724 | .Debug = .{ |
| 725 | .expect = | 725 | .expect = |
| 726 | \\error: TheSkyIsFalling | 726 | \\error: TheSkyIsFalling |
| 727 | \\source.zig:10:5: [address] in make_error (test) | 727 | \\source.zig:10:5: [address] in make_error ([main_file]) |
| 728 | \\ return error.TheSkyIsFalling; | 728 | \\ return error.TheSkyIsFalling; |
| 729 | \\ ^ | 729 | \\ ^ |
| 730 | \\source.zig:6:5: [address] in bar (test) | 730 | \\source.zig:6:5: [address] in bar ([main_file]) |
| 731 | \\ return make_error(); | 731 | \\ return make_error(); |
| 732 | \\ ^ | 732 | \\ ^ |
| 733 | \\source.zig:2:5: [address] in foo (test) | 733 | \\source.zig:2:5: [address] in foo ([main_file]) |
| 734 | \\ try bar(); | 734 | \\ try bar(); |
| 735 | \\ ^ | 735 | \\ ^ |
| 736 | \\source.zig:14:5: [address] in main (test) | 736 | \\source.zig:14:5: [address] in main ([main_file]) |
| 737 | \\ try foo(); | 737 | \\ try foo(); |
| 738 | \\ ^ | 738 | \\ ^ |
| 739 | \\ | 739 | \\ |
| ... | @@ -797,10 +797,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -797,10 +797,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 797 | .windows, // TODO intermittent failures | 797 | .windows, // TODO intermittent failures |
| 798 | }, | 798 | }, |
| 799 | .expect = | 799 | .expect = |
| 800 | \\source.zig:7:8: [address] in foo (test) | 800 | \\source.zig:7:8: [address] in foo ([main_file]) |
| 801 | \\ bar(); | 801 | \\ bar(); |
| 802 | \\ ^ | 802 | \\ ^ |
| 803 | \\source.zig:10:8: [address] in main (test) | 803 | \\source.zig:10:8: [address] in main ([main_file]) |
| 804 | \\ foo(); | 804 | \\ foo(); |
| 805 | \\ ^ | 805 | \\ ^ |
| 806 | \\ | 806 | \\ |
| ... | @@ -829,7 +829,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -829,7 +829,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 829 | .Debug = .{ | 829 | .Debug = .{ |
| 830 | .expect = | 830 | .expect = |
| 831 | \\error: TheSkyIsFalling | 831 | \\error: TheSkyIsFalling |
| 832 | \\source.zig:3:5: [address] in main (test) | 832 | \\source.zig:3:5: [address] in main ([main_file]) |
| 833 | \\ return error.TheSkyIsFalling; | 833 | \\ return error.TheSkyIsFalling; |
| 834 | \\ ^ | 834 | \\ ^ |
| 835 | \\ | 835 | \\ |