mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
stage2: disable failing aarch64-macos behavior tests
This commit is contained in:
parent
cf5009f9af
commit
9c82f3ae6f
@ -197,6 +197,9 @@ test "multiline string comments at multiple places" {
|
||||
}
|
||||
|
||||
test "string concatenation" {
|
||||
if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest;
|
||||
if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest;
|
||||
|
||||
try expect(mem.eql(u8, "OK" ++ " IT " ++ "WORKED", "OK IT WORKED"));
|
||||
}
|
||||
|
||||
@ -405,6 +408,7 @@ fn testTakeAddressOfParameter(f: f32) !void {
|
||||
|
||||
test "pointer to void return type" {
|
||||
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest;
|
||||
if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest;
|
||||
|
||||
try testPointerToVoidReturnType();
|
||||
|
||||
@ -78,8 +78,9 @@ test "comptime_int @intToFloat" {
|
||||
try expect(@TypeOf(result) == f64);
|
||||
try expect(result == 1234.0);
|
||||
}
|
||||
if (builtin.zig_backend != .stage2_x86_64 or builtin.os.tag != .macos) {
|
||||
// TODO investigate why this traps on x86_64-macos
|
||||
|
||||
if (!((builtin.zig_backend == .stage2_aarch64 or builtin.zig_backend == .stage2_x86_64) and builtin.os.tag == .macos)) {
|
||||
// TODO investigate why this traps on x86_64-macos and aarch64-macos
|
||||
{
|
||||
const result = @intToFloat(f128, 1234);
|
||||
try expect(@TypeOf(result) == f128);
|
||||
|
||||
@ -393,7 +393,8 @@ test "empty struct method call" {
|
||||
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest; // TODO
|
||||
|
||||
const es = EmptyStruct{};
|
||||
try expect(es.method() == 1234);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user