mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std: disable a few failing tests on hexagon
This commit is contained in:
parent
f785e4745d
commit
3b5376eff5
@ -1,3 +1,4 @@
|
||||
const builtin = @import("builtin");
|
||||
const std = @import("std.zig");
|
||||
const debug = std.debug;
|
||||
const mem = std.mem;
|
||||
@ -810,14 +811,6 @@ test eql {
|
||||
try testing.expect(eql(EU.tst(false), EU.tst(false)));
|
||||
try testing.expect(!eql(EU.tst(false), EU.tst(true)));
|
||||
|
||||
const V = @Vector(4, u32);
|
||||
const v1: V = @splat(1);
|
||||
const v2: V = @splat(1);
|
||||
const v3: V = @splat(2);
|
||||
|
||||
try testing.expect(eql(v1, v2));
|
||||
try testing.expect(!eql(v1, v3));
|
||||
|
||||
const CU = union(enum) {
|
||||
a: void,
|
||||
b: void,
|
||||
@ -826,6 +819,16 @@ test eql {
|
||||
|
||||
try testing.expect(eql(CU{ .a = {} }, .a));
|
||||
try testing.expect(!eql(CU{ .a = {} }, .b));
|
||||
|
||||
if (builtin.cpu.arch == .hexagon) return error.SkipZigTest;
|
||||
|
||||
const V = @Vector(4, u32);
|
||||
const v1: V = @splat(1);
|
||||
const v2: V = @splat(1);
|
||||
const v3: V = @splat(2);
|
||||
|
||||
try testing.expect(eql(v1, v2));
|
||||
try testing.expect(!eql(v1, v3));
|
||||
}
|
||||
|
||||
/// Deprecated: use `std.enums.fromInt` instead and handle null.
|
||||
|
||||
@ -495,6 +495,8 @@ test "mmap" {
|
||||
}
|
||||
}
|
||||
|
||||
if (builtin.cpu.arch == .hexagon) return error.SkipZigTest;
|
||||
|
||||
// Map the upper half of the file
|
||||
{
|
||||
const file = try tmp.dir.openFile(test_out_file, .{});
|
||||
|
||||
@ -228,6 +228,8 @@ pub fn extract(
|
||||
}
|
||||
|
||||
test "vector patterns" {
|
||||
if (builtin.cpu.arch == .hexagon) return error.SkipZigTest;
|
||||
|
||||
const base = @Vector(4, u32){ 10, 20, 30, 40 };
|
||||
const other_base = @Vector(4, u32){ 55, 66, 77, 88 };
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user