std: disable tests that crash stage2

This commit is contained in:
Veikka Tuominen
2022-06-03 15:30:25 +03:00
parent 2b93546b39
commit 1a7b4ddeae
6 changed files with 12 additions and 1 deletions

View File

@@ -804,6 +804,7 @@ pub fn fmtUtf16le(utf16le: []const u16) std.fmt.Formatter(formatUtf16le) {
}
test "fmtUtf16le" {
if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest;
const expectFmt = std.testing.expectFmt;
try expectFmt("", "{}", .{fmtUtf16le(utf8ToUtf16LeStringLiteral(""))});
try expectFmt("foo", "{}", .{fmtUtf16le(utf8ToUtf16LeStringLiteral("foo"))});