Commit Graph
25 Commits
Author SHA1 Message Date
Alex Rønne Petersen 1ce5af228f test-libc-nsz: disable expl.c
Fails with LLVM 23:

    ========= expected this stdout: =========

    ========= but found: ====================
    /home/alexrp/Sources/libc-test/src/math/special/expl.h:38: bad fp exception: RN expl(-0x1p+14)=0x0p+0, want INEXACT|UNDERFLOW got 0
    /home/alexrp/Sources/libc-test/src/math/special/expl.h:38: RN expl(-0x1p+14) want 0x0p+0 got 0x1p-16384 ulperr 2305843009213693952.000 = 0x1p+61 + -0x0p+0
2026-10-07 00:30:52 +02:00
Alex Rønne Petersen b2456e5d07 test-libc-nsz: disable logb[f,l].c
Fails with LLVM 23:

    ========= expected this stdout: =========

    ========= but found: ====================
    /home/alexrp/Sources/libc-test/src/math/special/logbf.h:1: bad fp exception: RN logbf(0x0p+0)=-inf, want DIVBYZERO got 0
    /home/alexrp/Sources/libc-test/src/math/special/logbf.h:2: bad fp exception: RN logbf(-0x0p+0)=-inf, want DIVBYZERO got 0
2026-10-07 00:30:52 +02:00
Alex Rønne Petersen 5e754304de remove support for wasi-libc
closes https://github.com/ziglang/zig/issues/9342
closes https://github.com/ziglang/zig/issues/15005
closes https://github.com/ziglang/zig/issues/20747
closes https://github.com/ziglang/zig/issues/22570
closes https://codeberg.org/ziglang/zig/issues/30977
2026-10-04 18:23:18 +02:00
gero3 7a9f8dc939 fix division of subnormal float in softfloat targets (#32177)
Adds tests and a fix to make sure compiler_rt handles division correctly from now on.

Fixes #35283

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/32177
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-06-07 04:43:39 +02:00
Huang Zhichao 9f0a38ac81 libzigc: log1p, log1pf 2026-05-31 09:21:02 +02:00
Alex Rønne Petersen 532047edd0 test-libc-nsz: disable rlimit-open-files.c
It sometimes fails when the machine is under heavy load.
2026-05-31 07:19:48 +02:00
mihael 764760df62 libzigc/math: Implement rintl, lrintl (#31791)
It's a fairly straightforward port of `musl`'s `rintl`, like `rint` and `rintf` were. `libc-test` tests for `rintl` are uncommented since they're now passing.

I've also covered special cases for `rint` with tests, and broke down the current `rint` and `modf` test declarations into multiple -- so each libc function get its own test declaration at the very least.

Contributes to #30978

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31791
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
2026-04-27 16:48:55 +02:00
badayvedat a05a25e2bb zig libc: export fdiml and fdimf (#31759)
Exports `fdiml` and `fdimf` in zig libc and removes from from musl and mingw libc.

Contributes to: https://codeberg.org/ziglang/zig/issues/30978

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31759
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: badayvedat <badayvedat@gmail.com>
Co-committed-by: badayvedat <badayvedat@gmail.com>
2026-04-16 01:11:04 +02:00
rpkak 90ccd6051c test-libc: do not skip search_hsearch on wasi-libc
emmalloc is not used anymore
2026-04-03 13:28:33 +02:00
mihael e15d8dd3d2 libc-test/math: Enable rint tests
The `rint` tests were commented out when added along with other functions to
the `libc-test` runner, presumably because they were failing. In the meantime,
we moved to using a Zig-implemented `rint` and I found that the tests are now
passing. To celebrate, I'm putting them back into commission.

Having these tests in a working state is nice because functions like `lrint`,
`llrint`, and `nearbyint` depend on `rint` implementation being correct.

Results:

```
$ ./build/stage3/bin/zig build -p stage4 -Denable-llvm -Dno-lib

$ stage4/bin/zig build test-libc -Dlibc-test-path=<LIBC-TEST-PATH> -Dtest-filter=rint -fqemu -fwasmtime --summary line
Build Summary: 2209/2209 steps succeeded
```
2026-04-02 23:54:19 +02:00
Alex Rønne Petersen 7f3c1329f8 libc-test: disable pthread_cond-smasher.c
Prone to flaky timeouts under heavy load.
2026-04-02 20:53:45 +02:00
badayvedat 6cdd576d41 libzigc: fdim 2026-04-02 14:50:19 +02:00
Alex Rønne Petersen dd10d3fb52 libc-test: disable pthread_cancel-points.c
This test is racey if multiple instances of it run concurrently.
2026-04-02 12:33:19 +02:00
Alex Rønne Petersen 6015192fb6 test-libc: disable pthread_cond_wait-cancel_ignored.c
It's flaky under heavy load: https://codeberg.org/ziglang/zig/actions/runs/2208/jobs/20/attempt/1
2026-03-10 23:36:22 +01:00
kj4tmp@gmail.com 3dc2a1f9ac zig libc: acosf 2026-02-13 11:30:14 -08:00
Jeff Anderson 379d128cba libzigc: roundf 2026-01-31 18:18:29 -08:00
Jeff Anderson 69a95571ed libzigc: round 2026-01-31 17:26:17 -08:00
kj4tmp@gmail.com e60ba21114 libzigc: roundl 2026-02-01 00:59:35 +01:00
Alex Rønne Petersen 200fb7c2ac test-libc: disable raise-race.c 2026-01-21 18:51:02 +01:00
rpkak e6ac1b77f0 libzigc: test and fix acos 2026-01-20 18:02:15 +01:00
rpkak b94a65ed40 test-libc: run some math tests 2026-01-10 00:09:54 +01:00
Alex Rønne Petersen 70c21fdbab libc-test: disable utime.c
Fails under heavy load in CI; futimens() effects aren't reflected in the
subsequent fstat() call for some reason.
2025-10-15 10:58:30 +02:00
Alex Rønne Petersen e5ebdf9e41 libc-test: disable malloc-oom.c
This causes QEMU to OOM in CI.
2025-10-01 03:25:13 +02:00
Alex Rønne Petersen dd4be26f53 libc-test: disable daemon-failure.c
It's flaky in that systems with a high FD limit will get an unexpected ENOMEM
error from daemon(), failing the test.
2025-09-25 12:57:56 +02:00
rpkak 9b3b7aa911 Integrate libc-test cases into the build system
zig build test-libc -Dlibc-test-path=/path/to/libc-test
2025-09-24 16:05:18 -07:00