aboutsummaryrefslogtreecommitdiff
path: root/test/stack_traces.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-01-02 14:11:27 -0800
committerGitHub <noreply@github.com>2024-01-02 14:11:27 -0800
commit289ae45c1b58e952867c4fa1e246d0ef7bc2ff64 (patch)
tree5dd034143a2354b7b44496e684f1c764e2f9664c /test/stack_traces.zig
parentc89bb3e141ee215add0b52930d48bffd8dae8342 (diff)
parentc546ddb3edc557fae4b932e5239b9dcb66117832 (diff)
downloadzig-289ae45c1b58e952867c4fa1e246d0ef7bc2ff64.tar.gz
zig-289ae45c1b58e952867c4fa1e246d0ef7bc2ff64.zip
Merge pull request #18160 from ziglang/std-build-module
Move many settings from being per-Compilation to being per-Module
Diffstat (limited to 'test/stack_traces.zig')
-rw-r--r--test/stack_traces.zig47
1 files changed, 30 insertions, 17 deletions
diff --git a/test/stack_traces.zig b/test/stack_traces.zig
index 0ace004bc6..467c53bcb9 100644
--- a/test/stack_traces.zig
+++ b/test/stack_traces.zig
@@ -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();