update stack trace tests to account for new defaults

ReleaseSafe optimization mode now defaults error tracing to false.
This commit is contained in:
Andrew Kelley
2023-12-26 18:26:23 -07:00
parent beed47e8c3
commit c8c32a0569
2 changed files with 59 additions and 66 deletions

View File

@@ -20,7 +20,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -31,6 +31,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -70,7 +71,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
},
.expect =
@@ -83,6 +84,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -125,7 +127,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -136,6 +138,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -176,7 +179,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -187,6 +190,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -230,7 +234,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -244,6 +248,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -286,7 +291,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -297,6 +302,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -336,7 +342,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -350,6 +356,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -391,7 +398,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -402,6 +409,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -461,7 +469,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
.linux, // defeated by aggressive inlining
},
@@ -478,6 +486,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -531,7 +540,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
},
.expect =
@@ -547,6 +556,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -595,7 +605,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
},
.expect =
@@ -611,6 +621,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -659,7 +670,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
},
.expect =
@@ -675,6 +686,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -728,7 +740,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
,
},
.ReleaseSafe = .{
.exclude_os = .{
.exclude_os = &.{
.windows, // TODO
},
.expect =
@@ -747,6 +759,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\ ^
\\
,
.error_tracing = true,
},
.ReleaseFast = .{
.expect =
@@ -763,10 +776,6 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
});
cases.addCase(.{
.exclude_os = .{
.openbsd, // integer overflow
.windows, // TODO intermittent failures
},
.name = "dumpCurrentStackTrace",
.source =
\\const std = @import("std");
@@ -783,6 +792,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\}
,
.Debug = .{
.exclude_os = &.{
.openbsd, // integer overflow
.windows, // TODO intermittent failures
},
.expect =
\\source.zig:7:8: [address] in foo (test)
\\ bar();