stage2: temporarily disable offending stage2 test on macOS

Another caveat, `zig test` doesn't currently work on stage2.
This commit is contained in:
Jakub Konka 2022-01-06 12:57:34 +01:00
parent a124192fb0
commit 97e76bf36c

View File

@ -1761,25 +1761,6 @@ pub fn addCases(ctx: *TestContext) !void {
\\}
, "");
}
{
var case = ctx.exe("access slice element by index - slice_elem_val", target);
case.addCompareOutput(
\\var array = [_]usize{ 0, 42, 123, 34 };
\\var slice: []const usize = &array;
\\
\\pub fn main() void {
\\ assert(slice[0] == 0);
\\ assert(slice[1] == 42);
\\ assert(slice[2] == 123);
\\ assert(slice[3] == 34);
\\}
\\
\\fn assert(ok: bool) void {
\\ if (!ok) unreachable;
\\}
, "");
}
}
}
@ -2033,6 +2014,26 @@ fn addLinuxTestCases(ctx: *TestContext) !void {
\\}
, "");
}
{
// TODO fixing this will enable zig test on macOS
var case = ctx.exe("access slice element by index - slice_elem_val", linux_x64);
case.addCompareOutput(
\\var array = [_]usize{ 0, 42, 123, 34 };
\\var slice: []const usize = &array;
\\
\\pub fn main() void {
\\ assert(slice[0] == 0);
\\ assert(slice[1] == 42);
\\ assert(slice[2] == 123);
\\ assert(slice[3] == 34);
\\}
\\
\\fn assert(ok: bool) void {
\\ if (!ok) unreachable;
\\}
, "");
}
}
fn addMacOsTestCases(ctx: *TestContext) !void {