| ... | ... | @@ -5,13 +5,13 @@ const tests = @import("tests.zig"); |
| 5 | 5 | pub fn addCases(cases: *tests.StackTracesContext) void { |
| 6 | 6 | cases.addCase(.{ |
| 7 | 7 | .name = "return", |
| 8 | | .source = |
| 8 | .source = |
| 9 | 9 | \\pub fn main() !void { |
| 10 | 10 | \\ return error.TheSkyIsFalling; |
| 11 | 11 | \\} |
| 12 | 12 | , |
| 13 | 13 | .Debug = .{ |
| 14 | | .expect = |
| 14 | .expect = |
| 15 | 15 | \\error: TheSkyIsFalling |
| 16 | 16 | \\source.zig:2:5: [address] in main (test) |
| 17 | 17 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -24,7 +24,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 24 | 24 | .windows, // TODO |
| 25 | 25 | .linux, // defeated by aggressive inlining |
| 26 | 26 | }, |
| 27 | | .expect = |
| 27 | .expect = |
| 28 | 28 | \\error: TheSkyIsFalling |
| 29 | 29 | \\source.zig:2:5: [address] in [function] |
| 30 | 30 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -33,13 +33,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 33 | 33 | , |
| 34 | 34 | }, |
| 35 | 35 | .ReleaseFast = .{ |
| 36 | | .expect = |
| 36 | .expect = |
| 37 | 37 | \\error: TheSkyIsFalling |
| 38 | 38 | \\ |
| 39 | 39 | , |
| 40 | 40 | }, |
| 41 | 41 | .ReleaseSmall = .{ |
| 42 | | .expect = |
| 42 | .expect = |
| 43 | 43 | \\error: TheSkyIsFalling |
| 44 | 44 | \\ |
| 45 | 45 | , |
| ... | ... | @@ -48,7 +48,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 48 | 48 | |
| 49 | 49 | cases.addCase(.{ |
| 50 | 50 | .name = "try return", |
| 51 | | .source = |
| 51 | .source = |
| 52 | 52 | \\fn foo() !void { |
| 53 | 53 | \\ return error.TheSkyIsFalling; |
| 54 | 54 | \\} |
| ... | ... | @@ -58,7 +58,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 58 | 58 | \\} |
| 59 | 59 | , |
| 60 | 60 | .Debug = .{ |
| 61 | | .expect = |
| 61 | .expect = |
| 62 | 62 | \\error: TheSkyIsFalling |
| 63 | 63 | \\source.zig:2:5: [address] in foo (test) |
| 64 | 64 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -73,7 +73,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 73 | 73 | .exclude_os = .{ |
| 74 | 74 | .windows, // TODO |
| 75 | 75 | }, |
| 76 | | .expect = |
| 76 | .expect = |
| 77 | 77 | \\error: TheSkyIsFalling |
| 78 | 78 | \\source.zig:2:5: [address] in [function] |
| 79 | 79 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -85,13 +85,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 85 | 85 | , |
| 86 | 86 | }, |
| 87 | 87 | .ReleaseFast = .{ |
| 88 | | .expect = |
| 88 | .expect = |
| 89 | 89 | \\error: TheSkyIsFalling |
| 90 | 90 | \\ |
| 91 | 91 | , |
| 92 | 92 | }, |
| 93 | 93 | .ReleaseSmall = .{ |
| 94 | | .expect = |
| 94 | .expect = |
| 95 | 95 | \\error: TheSkyIsFalling |
| 96 | 96 | \\ |
| 97 | 97 | , |
| ... | ... | @@ -99,7 +99,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 99 | 99 | }); |
| 100 | 100 | cases.addCase(.{ |
| 101 | 101 | .name = "non-error return pops error trace", |
| 102 | | .source = |
| 102 | .source = |
| 103 | 103 | \\fn bar() !void { |
| 104 | 104 | \\ return error.UhOh; |
| 105 | 105 | \\} |
| ... | ... | @@ -116,7 +116,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 116 | 116 | \\} |
| 117 | 117 | , |
| 118 | 118 | .Debug = .{ |
| 119 | | .expect = |
| 119 | .expect = |
| 120 | 120 | \\error: UnrelatedError |
| 121 | 121 | \\source.zig:13:5: [address] in main (test) |
| 122 | 122 | \\ return error.UnrelatedError; |
| ... | ... | @@ -129,7 +129,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 129 | 129 | .windows, // TODO |
| 130 | 130 | .linux, // defeated by aggressive inlining |
| 131 | 131 | }, |
| 132 | | .expect = |
| 132 | .expect = |
| 133 | 133 | \\error: UnrelatedError |
| 134 | 134 | \\source.zig:13:5: [address] in [function] |
| 135 | 135 | \\ return error.UnrelatedError; |
| ... | ... | @@ -138,13 +138,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 138 | 138 | , |
| 139 | 139 | }, |
| 140 | 140 | .ReleaseFast = .{ |
| 141 | | .expect = |
| 141 | .expect = |
| 142 | 142 | \\error: UnrelatedError |
| 143 | 143 | \\ |
| 144 | 144 | , |
| 145 | 145 | }, |
| 146 | 146 | .ReleaseSmall = .{ |
| 147 | | .expect = |
| 147 | .expect = |
| 148 | 148 | \\error: UnrelatedError |
| 149 | 149 | \\ |
| 150 | 150 | , |
| ... | ... | @@ -153,7 +153,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 153 | 153 | |
| 154 | 154 | cases.addCase(.{ |
| 155 | 155 | .name = "continue in while loop", |
| 156 | | .source = |
| 156 | .source = |
| 157 | 157 | \\fn foo() !void { |
| 158 | 158 | \\ return error.UhOh; |
| 159 | 159 | \\} |
| ... | ... | @@ -167,7 +167,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 167 | 167 | \\} |
| 168 | 168 | , |
| 169 | 169 | .Debug = .{ |
| 170 | | .expect = |
| 170 | .expect = |
| 171 | 171 | \\error: UnrelatedError |
| 172 | 172 | \\source.zig:10:5: [address] in main (test) |
| 173 | 173 | \\ return error.UnrelatedError; |
| ... | ... | @@ -180,7 +180,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 180 | 180 | .windows, // TODO |
| 181 | 181 | .linux, // defeated by aggressive inlining |
| 182 | 182 | }, |
| 183 | | .expect = |
| 183 | .expect = |
| 184 | 184 | \\error: UnrelatedError |
| 185 | 185 | \\source.zig:10:5: [address] in [function] |
| 186 | 186 | \\ return error.UnrelatedError; |
| ... | ... | @@ -189,13 +189,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 189 | 189 | , |
| 190 | 190 | }, |
| 191 | 191 | .ReleaseFast = .{ |
| 192 | | .expect = |
| 192 | .expect = |
| 193 | 193 | \\error: UnrelatedError |
| 194 | 194 | \\ |
| 195 | 195 | , |
| 196 | 196 | }, |
| 197 | 197 | .ReleaseSmall = .{ |
| 198 | | .expect = |
| 198 | .expect = |
| 199 | 199 | \\error: UnrelatedError |
| 200 | 200 | \\ |
| 201 | 201 | , |
| ... | ... | @@ -204,7 +204,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 204 | 204 | |
| 205 | 205 | cases.addCase(.{ |
| 206 | 206 | .name = "try return + handled catch/if-else", |
| 207 | | .source = |
| 207 | .source = |
| 208 | 208 | \\fn foo() !void { |
| 209 | 209 | \\ return error.TheSkyIsFalling; |
| 210 | 210 | \\} |
| ... | ... | @@ -218,7 +218,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 218 | 218 | \\} |
| 219 | 219 | , |
| 220 | 220 | .Debug = .{ |
| 221 | | .expect = |
| 221 | .expect = |
| 222 | 222 | \\error: TheSkyIsFalling |
| 223 | 223 | \\source.zig:2:5: [address] in foo (test) |
| 224 | 224 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -234,7 +234,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 234 | 234 | .windows, // TODO |
| 235 | 235 | .linux, // defeated by aggressive inlining |
| 236 | 236 | }, |
| 237 | | .expect = |
| 237 | .expect = |
| 238 | 238 | \\error: TheSkyIsFalling |
| 239 | 239 | \\source.zig:2:5: [address] in [function] |
| 240 | 240 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -246,13 +246,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 246 | 246 | , |
| 247 | 247 | }, |
| 248 | 248 | .ReleaseFast = .{ |
| 249 | | .expect = |
| 249 | .expect = |
| 250 | 250 | \\error: TheSkyIsFalling |
| 251 | 251 | \\ |
| 252 | 252 | , |
| 253 | 253 | }, |
| 254 | 254 | .ReleaseSmall = .{ |
| 255 | | .expect = |
| 255 | .expect = |
| 256 | 256 | \\error: TheSkyIsFalling |
| 257 | 257 | \\ |
| 258 | 258 | , |
| ... | ... | @@ -261,7 +261,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 261 | 261 | |
| 262 | 262 | cases.addCase(.{ |
| 263 | 263 | .name = "break from inline loop pops error return trace", |
| 264 | | .source = |
| 264 | .source = |
| 265 | 265 | \\fn foo() !void { return error.FooBar; } |
| 266 | 266 | \\ |
| 267 | 267 | \\pub fn main() !void { |
| ... | ... | @@ -277,7 +277,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 277 | 277 | \\} |
| 278 | 278 | , |
| 279 | 279 | .Debug = .{ |
| 280 | | .expect = |
| 280 | .expect = |
| 281 | 281 | \\error: BadTime |
| 282 | 282 | \\source.zig:12:5: [address] in main (test) |
| 283 | 283 | \\ return error.BadTime; |
| ... | ... | @@ -290,7 +290,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 290 | 290 | .windows, // TODO |
| 291 | 291 | .linux, // defeated by aggressive inlining |
| 292 | 292 | }, |
| 293 | | .expect = |
| 293 | .expect = |
| 294 | 294 | \\error: BadTime |
| 295 | 295 | \\source.zig:12:5: [address] in [function] |
| 296 | 296 | \\ return error.BadTime; |
| ... | ... | @@ -299,13 +299,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 299 | 299 | , |
| 300 | 300 | }, |
| 301 | 301 | .ReleaseFast = .{ |
| 302 | | .expect = |
| 302 | .expect = |
| 303 | 303 | \\error: BadTime |
| 304 | 304 | \\ |
| 305 | 305 | , |
| 306 | 306 | }, |
| 307 | 307 | .ReleaseSmall = .{ |
| 308 | | .expect = |
| 308 | .expect = |
| 309 | 309 | \\error: BadTime |
| 310 | 310 | \\ |
| 311 | 311 | , |
| ... | ... | @@ -314,7 +314,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 314 | 314 | |
| 315 | 315 | cases.addCase(.{ |
| 316 | 316 | .name = "catch and re-throw error", |
| 317 | | .source = |
| 317 | .source = |
| 318 | 318 | \\fn foo() !void { |
| 319 | 319 | \\ return error.TheSkyIsFalling; |
| 320 | 320 | \\} |
| ... | ... | @@ -324,7 +324,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 324 | 324 | \\} |
| 325 | 325 | , |
| 326 | 326 | .Debug = .{ |
| 327 | | .expect = |
| 327 | .expect = |
| 328 | 328 | \\error: AndMyCarIsOutOfGas |
| 329 | 329 | \\source.zig:2:5: [address] in foo (test) |
| 330 | 330 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -340,7 +340,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 340 | 340 | .windows, // TODO |
| 341 | 341 | .linux, // defeated by aggressive inlining |
| 342 | 342 | }, |
| 343 | | .expect = |
| 343 | .expect = |
| 344 | 344 | \\error: AndMyCarIsOutOfGas |
| 345 | 345 | \\source.zig:2:5: [address] in [function] |
| 346 | 346 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -352,13 +352,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 352 | 352 | , |
| 353 | 353 | }, |
| 354 | 354 | .ReleaseFast = .{ |
| 355 | | .expect = |
| 355 | .expect = |
| 356 | 356 | \\error: AndMyCarIsOutOfGas |
| 357 | 357 | \\ |
| 358 | 358 | , |
| 359 | 359 | }, |
| 360 | 360 | .ReleaseSmall = .{ |
| 361 | | .expect = |
| 361 | .expect = |
| 362 | 362 | \\error: AndMyCarIsOutOfGas |
| 363 | 363 | \\ |
| 364 | 364 | , |
| ... | ... | @@ -367,7 +367,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 367 | 367 | |
| 368 | 368 | cases.addCase(.{ |
| 369 | 369 | .name = "errors stored in var do not contribute to error trace", |
| 370 | | .source = |
| 370 | .source = |
| 371 | 371 | \\fn foo() !void { |
| 372 | 372 | \\ return error.TheSkyIsFalling; |
| 373 | 373 | \\} |
| ... | ... | @@ -382,7 +382,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 382 | 382 | \\} |
| 383 | 383 | , |
| 384 | 384 | .Debug = .{ |
| 385 | | .expect = |
| 385 | .expect = |
| 386 | 386 | \\error: SomethingUnrelatedWentWrong |
| 387 | 387 | \\source.zig:11:5: [address] in main (test) |
| 388 | 388 | \\ return error.SomethingUnrelatedWentWrong; |
| ... | ... | @@ -395,7 +395,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 395 | 395 | .windows, // TODO |
| 396 | 396 | .linux, // defeated by aggressive inlining |
| 397 | 397 | }, |
| 398 | | .expect = |
| 398 | .expect = |
| 399 | 399 | \\error: SomethingUnrelatedWentWrong |
| 400 | 400 | \\source.zig:11:5: [address] in [function] |
| 401 | 401 | \\ return error.SomethingUnrelatedWentWrong; |
| ... | ... | @@ -404,13 +404,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 404 | 404 | , |
| 405 | 405 | }, |
| 406 | 406 | .ReleaseFast = .{ |
| 407 | | .expect = |
| 407 | .expect = |
| 408 | 408 | \\error: SomethingUnrelatedWentWrong |
| 409 | 409 | \\ |
| 410 | 410 | , |
| 411 | 411 | }, |
| 412 | 412 | .ReleaseSmall = .{ |
| 413 | | .expect = |
| 413 | .expect = |
| 414 | 414 | \\error: SomethingUnrelatedWentWrong |
| 415 | 415 | \\ |
| 416 | 416 | , |
| ... | ... | @@ -419,7 +419,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 419 | 419 | |
| 420 | 420 | cases.addCase(.{ |
| 421 | 421 | .name = "error stored in const has trace preserved for duration of block", |
| 422 | | .source = |
| 422 | .source = |
| 423 | 423 | \\fn foo() !void { return error.TheSkyIsFalling; } |
| 424 | 424 | \\fn bar() !void { return error.InternalError; } |
| 425 | 425 | \\fn baz() !void { return error.UnexpectedReality; } |
| ... | ... | @@ -446,7 +446,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 446 | 446 | \\} |
| 447 | 447 | , |
| 448 | 448 | .Debug = .{ |
| 449 | | .expect = |
| 449 | .expect = |
| 450 | 450 | \\error: StillUnresolved |
| 451 | 451 | \\source.zig:1:18: [address] in foo (test) |
| 452 | 452 | \\fn foo() !void { return error.TheSkyIsFalling; } |
| ... | ... | @@ -465,7 +465,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 465 | 465 | .windows, // TODO |
| 466 | 466 | .linux, // defeated by aggressive inlining |
| 467 | 467 | }, |
| 468 | | .expect = |
| 468 | .expect = |
| 469 | 469 | \\error: StillUnresolved |
| 470 | 470 | \\source.zig:1:18: [address] in [function] |
| 471 | 471 | \\fn foo() !void { return error.TheSkyIsFalling; } |
| ... | ... | @@ -480,13 +480,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 480 | 480 | , |
| 481 | 481 | }, |
| 482 | 482 | .ReleaseFast = .{ |
| 483 | | .expect = |
| 483 | .expect = |
| 484 | 484 | \\error: StillUnresolved |
| 485 | 485 | \\ |
| 486 | 486 | , |
| 487 | 487 | }, |
| 488 | 488 | .ReleaseSmall = .{ |
| 489 | | .expect = |
| 489 | .expect = |
| 490 | 490 | \\error: StillUnresolved |
| 491 | 491 | \\ |
| 492 | 492 | , |
| ... | ... | @@ -495,7 +495,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 495 | 495 | |
| 496 | 496 | cases.addCase(.{ |
| 497 | 497 | .name = "error passed to function has its trace preserved for duration of the call", |
| 498 | | .source = |
| 498 | .source = |
| 499 | 499 | \\pub fn expectError(expected_error: anyerror, actual_error: anyerror!void) !void { |
| 500 | 500 | \\ actual_error catch |err| { |
| 501 | 501 | \\ if (err == expected_error) return {}; |
| ... | ... | @@ -516,7 +516,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 516 | 516 | \\} |
| 517 | 517 | , |
| 518 | 518 | .Debug = .{ |
| 519 | | .expect = |
| 519 | .expect = |
| 520 | 520 | \\error: TestExpectedError |
| 521 | 521 | \\source.zig:9:18: [address] in foo (test) |
| 522 | 522 | \\fn foo() !void { return error.Foo; } |
| ... | ... | @@ -534,7 +534,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 534 | 534 | .exclude_os = .{ |
| 535 | 535 | .windows, // TODO |
| 536 | 536 | }, |
| 537 | | .expect = |
| 537 | .expect = |
| 538 | 538 | \\error: TestExpectedError |
| 539 | 539 | \\source.zig:9:18: [address] in [function] |
| 540 | 540 | \\fn foo() !void { return error.Foo; } |
| ... | ... | @@ -549,13 +549,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 549 | 549 | , |
| 550 | 550 | }, |
| 551 | 551 | .ReleaseFast = .{ |
| 552 | | .expect = |
| 552 | .expect = |
| 553 | 553 | \\error: TestExpectedError |
| 554 | 554 | \\ |
| 555 | 555 | , |
| 556 | 556 | }, |
| 557 | 557 | .ReleaseSmall = .{ |
| 558 | | .expect = |
| 558 | .expect = |
| 559 | 559 | \\error: TestExpectedError |
| 560 | 560 | \\ |
| 561 | 561 | , |
| ... | ... | @@ -564,7 +564,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 564 | 564 | |
| 565 | 565 | cases.addCase(.{ |
| 566 | 566 | .name = "try return from within catch", |
| 567 | | .source = |
| 567 | .source = |
| 568 | 568 | \\fn foo() !void { |
| 569 | 569 | \\ return error.TheSkyIsFalling; |
| 570 | 570 | \\} |
| ... | ... | @@ -580,7 +580,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 580 | 580 | \\} |
| 581 | 581 | , |
| 582 | 582 | .Debug = .{ |
| 583 | | .expect = |
| 583 | .expect = |
| 584 | 584 | \\error: AndMyCarIsOutOfGas |
| 585 | 585 | \\source.zig:2:5: [address] in foo (test) |
| 586 | 586 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -598,7 +598,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 598 | 598 | .exclude_os = .{ |
| 599 | 599 | .windows, // TODO |
| 600 | 600 | }, |
| 601 | | .expect = |
| 601 | .expect = |
| 602 | 602 | \\error: AndMyCarIsOutOfGas |
| 603 | 603 | \\source.zig:2:5: [address] in [function] |
| 604 | 604 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -613,13 +613,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 613 | 613 | , |
| 614 | 614 | }, |
| 615 | 615 | .ReleaseFast = .{ |
| 616 | | .expect = |
| 616 | .expect = |
| 617 | 617 | \\error: AndMyCarIsOutOfGas |
| 618 | 618 | \\ |
| 619 | 619 | , |
| 620 | 620 | }, |
| 621 | 621 | .ReleaseSmall = .{ |
| 622 | | .expect = |
| 622 | .expect = |
| 623 | 623 | \\error: AndMyCarIsOutOfGas |
| 624 | 624 | \\ |
| 625 | 625 | , |
| ... | ... | @@ -628,7 +628,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 628 | 628 | |
| 629 | 629 | cases.addCase(.{ |
| 630 | 630 | .name = "try return from within if-else", |
| 631 | | .source = |
| 631 | .source = |
| 632 | 632 | \\fn foo() !void { |
| 633 | 633 | \\ return error.TheSkyIsFalling; |
| 634 | 634 | \\} |
| ... | ... | @@ -644,7 +644,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 644 | 644 | \\} |
| 645 | 645 | , |
| 646 | 646 | .Debug = .{ |
| 647 | | .expect = |
| 647 | .expect = |
| 648 | 648 | \\error: AndMyCarIsOutOfGas |
| 649 | 649 | \\source.zig:2:5: [address] in foo (test) |
| 650 | 650 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -662,7 +662,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 662 | 662 | .exclude_os = .{ |
| 663 | 663 | .windows, // TODO |
| 664 | 664 | }, |
| 665 | | .expect = |
| 665 | .expect = |
| 666 | 666 | \\error: AndMyCarIsOutOfGas |
| 667 | 667 | \\source.zig:2:5: [address] in [function] |
| 668 | 668 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -677,13 +677,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 677 | 677 | , |
| 678 | 678 | }, |
| 679 | 679 | .ReleaseFast = .{ |
| 680 | | .expect = |
| 680 | .expect = |
| 681 | 681 | \\error: AndMyCarIsOutOfGas |
| 682 | 682 | \\ |
| 683 | 683 | , |
| 684 | 684 | }, |
| 685 | 685 | .ReleaseSmall = .{ |
| 686 | | .expect = |
| 686 | .expect = |
| 687 | 687 | \\error: AndMyCarIsOutOfGas |
| 688 | 688 | \\ |
| 689 | 689 | , |
| ... | ... | @@ -692,7 +692,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 692 | 692 | |
| 693 | 693 | cases.addCase(.{ |
| 694 | 694 | .name = "try try return return", |
| 695 | | .source = |
| 695 | .source = |
| 696 | 696 | \\fn foo() !void { |
| 697 | 697 | \\ try bar(); |
| 698 | 698 | \\} |
| ... | ... | @@ -710,7 +710,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 710 | 710 | \\} |
| 711 | 711 | , |
| 712 | 712 | .Debug = .{ |
| 713 | | .expect = |
| 713 | .expect = |
| 714 | 714 | \\error: TheSkyIsFalling |
| 715 | 715 | \\source.zig:10:5: [address] in make_error (test) |
| 716 | 716 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -731,7 +731,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 731 | 731 | .exclude_os = .{ |
| 732 | 732 | .windows, // TODO |
| 733 | 733 | }, |
| 734 | | .expect = |
| 734 | .expect = |
| 735 | 735 | \\error: TheSkyIsFalling |
| 736 | 736 | \\source.zig:10:5: [address] in [function] |
| 737 | 737 | \\ return error.TheSkyIsFalling; |
| ... | ... | @@ -749,13 +749,13 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 749 | 749 | , |
| 750 | 750 | }, |
| 751 | 751 | .ReleaseFast = .{ |
| 752 | | .expect = |
| 752 | .expect = |
| 753 | 753 | \\error: TheSkyIsFalling |
| 754 | 754 | \\ |
| 755 | 755 | , |
| 756 | 756 | }, |
| 757 | 757 | .ReleaseSmall = .{ |
| 758 | | .expect = |
| 758 | .expect = |
| 759 | 759 | \\error: TheSkyIsFalling |
| 760 | 760 | \\ |
| 761 | 761 | , |
| ... | ... | @@ -768,7 +768,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 768 | 768 | .windows, // TODO intermittent failures |
| 769 | 769 | }, |
| 770 | 770 | .name = "dumpCurrentStackTrace", |
| 771 | | .source = |
| 771 | .source = |
| 772 | 772 | \\const std = @import("std"); |
| 773 | 773 | \\ |
| 774 | 774 | \\fn bar() void { |
| ... | ... | @@ -783,7 +783,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 783 | 783 | \\} |
| 784 | 784 | , |
| 785 | 785 | .Debug = .{ |
| 786 | | .expect = |
| 786 | .expect = |
| 787 | 787 | \\source.zig:7:8: [address] in foo (test) |
| 788 | 788 | \\ bar(); |
| 789 | 789 | \\ ^ |