| author | |
| committer | |
| log | 9bd82fd51ee77a4033d726f3ade94c7964f5beed |
| tree | 505c42d69b35d4c950c01dcea16e5836b8d3b0c0 |
| parent | 6fe487bca2b69c16be2db78ef075470ef60fb1ec |
| signature |
closes https://codeberg.org/ziglang/zig/issues/355174 files changed, 8 insertions(+), 6 deletions(-)
test/c/math.zig+3| ... | ... | @@ -61,10 +61,13 @@ test "modf" { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | test "modff" { |
| 64 | if (builtin.cpu.arch == .x86 and builtin.target.os.tag == .windows and builtin.target.abi != .gnu) return; // mingw-only | |
| 65 | ||
| 64 | 66 | try testModf(f32); |
| 65 | 67 | } |
| 66 | 68 | |
| 67 | 69 | test "modfl" { |
| 70 | if (builtin.cpu.arch.isX86() and builtin.target.os.tag == .windows and builtin.target.abi != .gnu) return; // mingw-only | |
| 68 | 71 | if (builtin.target.cpu.arch.isPowerPC()) return error.SkipZigTest; // TODO: see https://codeberg.org/ziglang/zig/issues/30976 |
| 69 | 72 | |
| 70 | 73 | try testModf(c_longdouble); |
test/c/pthread.zig+1| ... | ... | @@ -7,6 +7,7 @@ const testing = std.testing; |
| 7 | 7 | |
| 8 | 8 | test "pthread_spinlock_t" { |
| 9 | 9 | if (builtin.target.os.tag.isDarwin()) return; // Darwin doesn't have `pthread_spin_*` |
| 10 | if (builtin.target.os.tag == .windows and builtin.target.abi != .gnu) return; // winpthreads-only | |
| 10 | 11 | |
| 11 | 12 | var spin: c.pthread_spinlock_t = undefined; |
| 12 | 13 | _ = c.pthread_spin_init(&spin, c.PTHREAD_PROCESS_PRIVATE); |
test/c/strings.zig+4| ... | ... | @@ -48,6 +48,8 @@ test "ffs" { |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | test "strcasecmp" { |
| 51 | if (builtin.target.os.tag == .windows and builtin.target.abi != .gnu) return; // mingw-only | |
| 52 | ||
| 51 | 53 | try testing.expect(c.strcasecmp(@ptrCast("a"), @ptrCast("b")) < 0); |
| 52 | 54 | try testing.expect(c.strcasecmp(@ptrCast("b"), @ptrCast("a")) > 0); |
| 53 | 55 | try testing.expect(c.strcasecmp(@ptrCast("A"), @ptrCast("b")) < 0); |
| ... | ... | @@ -58,6 +60,8 @@ test "strcasecmp" { |
| 58 | 60 | } |
| 59 | 61 | |
| 60 | 62 | test "strncasecmp" { |
| 63 | if (builtin.target.os.tag == .windows and builtin.target.abi != .gnu) return; // mingw-only | |
| 64 | ||
| 61 | 65 | try testing.expect(c.strncasecmp(@ptrCast("a"), @ptrCast("b"), 1) < 0); |
| 62 | 66 | try testing.expect(c.strncasecmp(@ptrCast("b"), @ptrCast("a"), 1) > 0); |
| 63 | 67 | try testing.expect(c.strncasecmp(@ptrCast("A"), @ptrCast("b"), 1) < 0); |
test/tests.zig-6| ... | ... | @@ -1611,8 +1611,6 @@ const module_test_targets = blk: { |
| 1611 | 1611 | .abi = .msvc, |
| 1612 | 1612 | }, |
| 1613 | 1613 | .link_libc = true, |
| 1614 | // https://codeberg.org/ziglang/zig/issues/35517 | |
| 1615 | .skip_modules = &.{"libc"}, | |
| 1616 | 1614 | }, |
| 1617 | 1615 | .{ |
| 1618 | 1616 | .target = .{ |
| ... | ... | @@ -1628,8 +1626,6 @@ const module_test_targets = blk: { |
| 1628 | 1626 | .abi = .gnu, |
| 1629 | 1627 | }, |
| 1630 | 1628 | .link_libc = true, |
| 1631 | // https://codeberg.org/ziglang/zig/issues/35517 | |
| 1632 | .skip_modules = &.{"libc"}, | |
| 1633 | 1629 | }, |
| 1634 | 1630 | |
| 1635 | 1631 | .{ |
| ... | ... | @@ -1657,8 +1653,6 @@ const module_test_targets = blk: { |
| 1657 | 1653 | .abi = .msvc, |
| 1658 | 1654 | }, |
| 1659 | 1655 | .link_libc = true, |
| 1660 | // https://codeberg.org/ziglang/zig/issues/35517 | |
| 1661 | .skip_modules = &.{"libc"}, | |
| 1662 | 1656 | }, |
| 1663 | 1657 | .{ |
| 1664 | 1658 | .target = .{ |