| ... | @@ -20,7 +20,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -20,7 +20,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 20 | , | 20 | , |
| 21 | }, | 21 | }, |
| 22 | .ReleaseSafe = .{ | 22 | .ReleaseSafe = .{ |
| 23 | .exclude_os = .{ | 23 | .exclude_os = &.{ |
| 24 | .windows, // TODO | 24 | .windows, // TODO |
| 25 | .linux, // defeated by aggressive inlining | 25 | .linux, // defeated by aggressive inlining |
| 26 | }, | 26 | }, |
| ... | @@ -31,6 +31,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -31,6 +31,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 31 | \\ ^ | 31 | \\ ^ |
| 32 | \\ | 32 | \\ |
| 33 | , | 33 | , |
| | 34 | .error_tracing = true, |
| 34 | }, | 35 | }, |
| 35 | .ReleaseFast = .{ | 36 | .ReleaseFast = .{ |
| 36 | .expect = | 37 | .expect = |
| ... | @@ -70,7 +71,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -70,7 +71,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 70 | , | 71 | , |
| 71 | }, | 72 | }, |
| 72 | .ReleaseSafe = .{ | 73 | .ReleaseSafe = .{ |
| 73 | .exclude_os = .{ | 74 | .exclude_os = &.{ |
| 74 | .windows, // TODO | 75 | .windows, // TODO |
| 75 | }, | 76 | }, |
| 76 | .expect = | 77 | .expect = |
| ... | @@ -83,6 +84,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -83,6 +84,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 83 | \\ ^ | 84 | \\ ^ |
| 84 | \\ | 85 | \\ |
| 85 | , | 86 | , |
| | 87 | .error_tracing = true, |
| 86 | }, | 88 | }, |
| 87 | .ReleaseFast = .{ | 89 | .ReleaseFast = .{ |
| 88 | .expect = | 90 | .expect = |
| ... | @@ -125,7 +127,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -125,7 +127,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 125 | , | 127 | , |
| 126 | }, | 128 | }, |
| 127 | .ReleaseSafe = .{ | 129 | .ReleaseSafe = .{ |
| 128 | .exclude_os = .{ | 130 | .exclude_os = &.{ |
| 129 | .windows, // TODO | 131 | .windows, // TODO |
| 130 | .linux, // defeated by aggressive inlining | 132 | .linux, // defeated by aggressive inlining |
| 131 | }, | 133 | }, |
| ... | @@ -136,6 +138,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -136,6 +138,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 136 | \\ ^ | 138 | \\ ^ |
| 137 | \\ | 139 | \\ |
| 138 | , | 140 | , |
| | 141 | .error_tracing = true, |
| 139 | }, | 142 | }, |
| 140 | .ReleaseFast = .{ | 143 | .ReleaseFast = .{ |
| 141 | .expect = | 144 | .expect = |
| ... | @@ -176,7 +179,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -176,7 +179,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 176 | , | 179 | , |
| 177 | }, | 180 | }, |
| 178 | .ReleaseSafe = .{ | 181 | .ReleaseSafe = .{ |
| 179 | .exclude_os = .{ | 182 | .exclude_os = &.{ |
| 180 | .windows, // TODO | 183 | .windows, // TODO |
| 181 | .linux, // defeated by aggressive inlining | 184 | .linux, // defeated by aggressive inlining |
| 182 | }, | 185 | }, |
| ... | @@ -187,6 +190,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -187,6 +190,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 187 | \\ ^ | 190 | \\ ^ |
| 188 | \\ | 191 | \\ |
| 189 | , | 192 | , |
| | 193 | .error_tracing = true, |
| 190 | }, | 194 | }, |
| 191 | .ReleaseFast = .{ | 195 | .ReleaseFast = .{ |
| 192 | .expect = | 196 | .expect = |
| ... | @@ -230,7 +234,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -230,7 +234,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 230 | , | 234 | , |
| 231 | }, | 235 | }, |
| 232 | .ReleaseSafe = .{ | 236 | .ReleaseSafe = .{ |
| 233 | .exclude_os = .{ | 237 | .exclude_os = &.{ |
| 234 | .windows, // TODO | 238 | .windows, // TODO |
| 235 | .linux, // defeated by aggressive inlining | 239 | .linux, // defeated by aggressive inlining |
| 236 | }, | 240 | }, |
| ... | @@ -244,6 +248,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -244,6 +248,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 244 | \\ ^ | 248 | \\ ^ |
| 245 | \\ | 249 | \\ |
| 246 | , | 250 | , |
| | 251 | .error_tracing = true, |
| 247 | }, | 252 | }, |
| 248 | .ReleaseFast = .{ | 253 | .ReleaseFast = .{ |
| 249 | .expect = | 254 | .expect = |
| ... | @@ -286,7 +291,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -286,7 +291,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 286 | , | 291 | , |
| 287 | }, | 292 | }, |
| 288 | .ReleaseSafe = .{ | 293 | .ReleaseSafe = .{ |
| 289 | .exclude_os = .{ | 294 | .exclude_os = &.{ |
| 290 | .windows, // TODO | 295 | .windows, // TODO |
| 291 | .linux, // defeated by aggressive inlining | 296 | .linux, // defeated by aggressive inlining |
| 292 | }, | 297 | }, |
| ... | @@ -297,6 +302,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -297,6 +302,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 297 | \\ ^ | 302 | \\ ^ |
| 298 | \\ | 303 | \\ |
| 299 | , | 304 | , |
| | 305 | .error_tracing = true, |
| 300 | }, | 306 | }, |
| 301 | .ReleaseFast = .{ | 307 | .ReleaseFast = .{ |
| 302 | .expect = | 308 | .expect = |
| ... | @@ -336,7 +342,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -336,7 +342,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 336 | , | 342 | , |
| 337 | }, | 343 | }, |
| 338 | .ReleaseSafe = .{ | 344 | .ReleaseSafe = .{ |
| 339 | .exclude_os = .{ | 345 | .exclude_os = &.{ |
| 340 | .windows, // TODO | 346 | .windows, // TODO |
| 341 | .linux, // defeated by aggressive inlining | 347 | .linux, // defeated by aggressive inlining |
| 342 | }, | 348 | }, |
| ... | @@ -350,6 +356,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -350,6 +356,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 350 | \\ ^ | 356 | \\ ^ |
| 351 | \\ | 357 | \\ |
| 352 | , | 358 | , |
| | 359 | .error_tracing = true, |
| 353 | }, | 360 | }, |
| 354 | .ReleaseFast = .{ | 361 | .ReleaseFast = .{ |
| 355 | .expect = | 362 | .expect = |
| ... | @@ -391,7 +398,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -391,7 +398,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 391 | , | 398 | , |
| 392 | }, | 399 | }, |
| 393 | .ReleaseSafe = .{ | 400 | .ReleaseSafe = .{ |
| 394 | .exclude_os = .{ | 401 | .exclude_os = &.{ |
| 395 | .windows, // TODO | 402 | .windows, // TODO |
| 396 | .linux, // defeated by aggressive inlining | 403 | .linux, // defeated by aggressive inlining |
| 397 | }, | 404 | }, |
| ... | @@ -402,6 +409,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -402,6 +409,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 402 | \\ ^ | 409 | \\ ^ |
| 403 | \\ | 410 | \\ |
| 404 | , | 411 | , |
| | 412 | .error_tracing = true, |
| 405 | }, | 413 | }, |
| 406 | .ReleaseFast = .{ | 414 | .ReleaseFast = .{ |
| 407 | .expect = | 415 | .expect = |
| ... | @@ -461,7 +469,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -461,7 +469,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 461 | , | 469 | , |
| 462 | }, | 470 | }, |
| 463 | .ReleaseSafe = .{ | 471 | .ReleaseSafe = .{ |
| 464 | .exclude_os = .{ | 472 | .exclude_os = &.{ |
| 465 | .windows, // TODO | 473 | .windows, // TODO |
| 466 | .linux, // defeated by aggressive inlining | 474 | .linux, // defeated by aggressive inlining |
| 467 | }, | 475 | }, |
| ... | @@ -478,6 +486,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -478,6 +486,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 478 | \\ ^ | 486 | \\ ^ |
| 479 | \\ | 487 | \\ |
| 480 | , | 488 | , |
| | 489 | .error_tracing = true, |
| 481 | }, | 490 | }, |
| 482 | .ReleaseFast = .{ | 491 | .ReleaseFast = .{ |
| 483 | .expect = | 492 | .expect = |
| ... | @@ -531,7 +540,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -531,7 +540,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 531 | , | 540 | , |
| 532 | }, | 541 | }, |
| 533 | .ReleaseSafe = .{ | 542 | .ReleaseSafe = .{ |
| 534 | .exclude_os = .{ | 543 | .exclude_os = &.{ |
| 535 | .windows, // TODO | 544 | .windows, // TODO |
| 536 | }, | 545 | }, |
| 537 | .expect = | 546 | .expect = |
| ... | @@ -547,6 +556,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -547,6 +556,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 547 | \\ ^ | 556 | \\ ^ |
| 548 | \\ | 557 | \\ |
| 549 | , | 558 | , |
| | 559 | .error_tracing = true, |
| 550 | }, | 560 | }, |
| 551 | .ReleaseFast = .{ | 561 | .ReleaseFast = .{ |
| 552 | .expect = | 562 | .expect = |
| ... | @@ -595,7 +605,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -595,7 +605,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 595 | , | 605 | , |
| 596 | }, | 606 | }, |
| 597 | .ReleaseSafe = .{ | 607 | .ReleaseSafe = .{ |
| 598 | .exclude_os = .{ | 608 | .exclude_os = &.{ |
| 599 | .windows, // TODO | 609 | .windows, // TODO |
| 600 | }, | 610 | }, |
| 601 | .expect = | 611 | .expect = |
| ... | @@ -611,6 +621,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -611,6 +621,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 611 | \\ ^ | 621 | \\ ^ |
| 612 | \\ | 622 | \\ |
| 613 | , | 623 | , |
| | 624 | .error_tracing = true, |
| 614 | }, | 625 | }, |
| 615 | .ReleaseFast = .{ | 626 | .ReleaseFast = .{ |
| 616 | .expect = | 627 | .expect = |
| ... | @@ -659,7 +670,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -659,7 +670,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 659 | , | 670 | , |
| 660 | }, | 671 | }, |
| 661 | .ReleaseSafe = .{ | 672 | .ReleaseSafe = .{ |
| 662 | .exclude_os = .{ | 673 | .exclude_os = &.{ |
| 663 | .windows, // TODO | 674 | .windows, // TODO |
| 664 | }, | 675 | }, |
| 665 | .expect = | 676 | .expect = |
| ... | @@ -675,6 +686,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -675,6 +686,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 675 | \\ ^ | 686 | \\ ^ |
| 676 | \\ | 687 | \\ |
| 677 | , | 688 | , |
| | 689 | .error_tracing = true, |
| 678 | }, | 690 | }, |
| 679 | .ReleaseFast = .{ | 691 | .ReleaseFast = .{ |
| 680 | .expect = | 692 | .expect = |
| ... | @@ -728,7 +740,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -728,7 +740,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 728 | , | 740 | , |
| 729 | }, | 741 | }, |
| 730 | .ReleaseSafe = .{ | 742 | .ReleaseSafe = .{ |
| 731 | .exclude_os = .{ | 743 | .exclude_os = &.{ |
| 732 | .windows, // TODO | 744 | .windows, // TODO |
| 733 | }, | 745 | }, |
| 734 | .expect = | 746 | .expect = |
| ... | @@ -747,6 +759,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -747,6 +759,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 747 | \\ ^ | 759 | \\ ^ |
| 748 | \\ | 760 | \\ |
| 749 | , | 761 | , |
| | 762 | .error_tracing = true, |
| 750 | }, | 763 | }, |
| 751 | .ReleaseFast = .{ | 764 | .ReleaseFast = .{ |
| 752 | .expect = | 765 | .expect = |
| ... | @@ -763,10 +776,6 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -763,10 +776,6 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 763 | }); | 776 | }); |
| 764 | | 777 | |
| 765 | cases.addCase(.{ | 778 | cases.addCase(.{ |
| 766 | .exclude_os = .{ | | |
| 767 | .openbsd, // integer overflow | | |
| 768 | .windows, // TODO intermittent failures | | |
| 769 | }, | | |
| 770 | .name = "dumpCurrentStackTrace", | 779 | .name = "dumpCurrentStackTrace", |
| 771 | .source = | 780 | .source = |
| 772 | \\const std = @import("std"); | 781 | \\const std = @import("std"); |
| ... | @@ -783,6 +792,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { | ... | @@ -783,6 +792,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void { |
| 783 | \\} | 792 | \\} |
| 784 | , | 793 | , |
| 785 | .Debug = .{ | 794 | .Debug = .{ |
| | 795 | .exclude_os = &.{ |
| | 796 | .openbsd, // integer overflow |
| | 797 | .windows, // TODO intermittent failures |
| | 798 | }, |
| 786 | .expect = | 799 | .expect = |
| 787 | \\source.zig:7:8: [address] in foo (test) | 800 | \\source.zig:7:8: [address] in foo (test) |
| 788 | \\ bar(); | 801 | \\ bar(); |