Skip to content

Commit 098235c

Browse files
committed
skip result check for TLS stack overflows in stack overflow test on Windows
1 parent 6620e2b commit 098235c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ui/runtime/out-of-stack.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ fn main() {
110110
assert!(error.contains("has overflowed its stack"),
111111
"missing overflow message: {}", error);
112112

113-
check_status(silent.status);
113+
// Stack overflows in TLS destructors do not result in the error
114+
// code being changed on Windows.
115+
if !(cfg!(target_os = "windows") && mode.contains("tls")) {
116+
check_status(silent.status);
117+
}
114118
}
115119
}
116120
}

0 commit comments

Comments
 (0)