Commit Graph

608 Commits

Author SHA1 Message Date
Wildan M 675a60bd9a Fix unixpeername expected stdout 2026-01-22 19:06:29 +07:00
Jeremy Soller 538fed80a0 Merge branch 'getaddrinfo-hang' into 'master'
Fix getaddrinfo hang due to infinite loop

See merge request redox-os/relibc!909
2026-01-23 00:25:10 -07:00
Anhad Singh b6914ef239 feat(pthread/tls): more tests
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:27:47 +11:00
Anhad Singh 0f4a82b5e8 fix(pthread/tls): destructors
Also added tests for it.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:24:43 +11:00
Wildan M 6a455159ae Fix getaddrinfo hang due to infinite loop 2026-01-22 16:48:13 +07:00
Akshit Gaur 3754effab8 Add shutdown syscall 2026-01-19 21:58:06 +05:30
Wildan M 5476770359 Define max limits in rust 2026-01-17 18:17:35 +07:00
Wildan M d33bf64e5f Remove the mutex, just fork and threads 2026-01-16 13:26:16 +07:00
Wildan M fd616a9704 Add mutex inside fork test 2026-01-16 13:21:51 +07:00
Wildan M 3bf35abeae Add more sys_socket tests 2026-01-16 07:18:13 +07:00
Wildan M fe6ad62ed8 Allow missing stderr file in expected tests 2026-01-16 07:10:28 +07:00
Wildan M af7636daba Enable unix tests 2026-01-15 05:34:53 +07:00
Wildan M aa4572b613 Append inner_af_unix with null, workaround unix dgram getpeername 2026-01-15 05:26:44 +07:00
Wildan M ad3a39771b Add more test 2026-01-08 01:42:46 +07:00
Wildan M 02752dda27 Enable some tests 2026-01-07 22:59:34 +07:00
Jeremy Soller 8c20bc7899 Merge branch 'sys-socket-tests' into 'master'
Add sys_socket tests, Update failing tests

See merge request redox-os/relibc!872
2026-01-07 07:03:07 -07:00
Wildan M 053525fba1 Update failing tests 2026-01-07 04:52:35 +07:00
Wildan M 9c67018022 Add sys_socket tests 2026-01-07 04:48:31 +07:00
Wildan M 6b191f8c63 Adjust mutex test 2026-01-07 01:44:51 +07:00
Wildan M 6ef56f5bc9 Use pthread recursive mutex for flockfile 2026-01-07 00:54:20 +07:00
Wildan M 0ade938c63 Add pthread/timedwait to Makefile 2026-01-06 15:43:11 +07:00
Wildan M 242ed32b42 Implement pthread_cond_timedwait futex properly 2026-01-06 15:33:58 +07:00
Jeremy Soller 3eeaf4eb22 Merge branch 'putc-unlocked-test' into 'master'
Add putc_unlocked tests

See merge request redox-os/relibc!863
2026-01-05 06:22:18 -07:00
Wildan M 7f30fd2c42 Restore correct sleep values 2026-01-05 14:38:39 +07:00
Wildan M 13b105a54e Fix failing tests 2026-01-05 14:38:11 +07:00
Wildan M 1e587dc77b Add putc_unlocked tests 2026-01-05 12:43:51 +07:00
Wildan M 11d2bcede6 Enhance single test run, document check.sh 2026-01-05 11:23:14 +07:00
Wildan M b5b2d0f4a0 Add malloc/usable_size into tests 2026-01-04 02:46:40 +07:00
Wildan M 0a5b046299 Update dlmalloc 2026-01-04 02:44:50 +07:00
Wildan M 7d1c3961b5 Implement malloc_usable_size 2026-01-04 02:15:29 +07:00
Wildan M e0d41a17e7 Disable test requiring custom locales 2025-12-28 15:45:17 +07:00
Wildan M e67933ef1b Use POSIX localedef format 2025-12-28 03:24:20 +07:00
Wildan M 19d95a226c Add tests for new locale.h functions 2025-12-27 22:25:01 +07:00
Wildan M 2f4753bdfa Add single test run in check script 2025-12-27 19:42:24 +07:00
Wildan M 91873d21fe Fix aarch64 test compilation 2025-12-22 04:03:32 +07:00
Wildan M fc2937b648 Correct out strcpy expected output 2025-12-19 17:15:28 +07:00
Wildan M f6fa58bbbc Fix NATIVE_RELIBC=0 2025-12-18 12:26:34 +07:00
Wildan M 42d5369d41 Make test runner hang proof 2025-12-18 10:16:08 +07:00
Wildan M fb01e89508 Adjust test sleeps 2025-12-18 10:13:40 +07:00
Wildan M d902941b14 Use dynamic link for tests 2025-12-18 07:52:26 +07:00
auronandace c2da2a8e47 fix expected output of strcpy test 2025-12-15 08:28:25 +00:00
Wildan M 31797971bc Write unified test script and make test readable 2025-12-10 23:28:57 +07:00
Anhad Singh 843f3f89ff fix(tests/Makefile): use correct dynamic linker path depending on target 2025-12-09 15:02:34 +11:00
Anhad Singh 396a0d20bf fix(build): target specific sysroot directory 2025-12-09 14:13:09 +11:00
Anhad Singh 2575639212 fix(tests/time): explictly set timezone instead of assuming 2025-12-09 01:18:32 +11:00
Josh Megnauth 4538fdb0c9 Implement timespec_get and timespec_getres
`timespec_get` and `timespec_getres` are both C23 functions. They're
similar to the POSIX functions `clock_gettime` and `clock_getres`, but
both sets of functions define extra, exclusive features. I didn't
implement the extra features yet, partially because Redox doesn't seem
to support them yet either.
2025-12-04 20:38:35 +00:00
Anhad Singh a7d08aa37e fix(tests/getopt_long): c should be an int not a char
`getopt_long` returns an `int` not a `char`. On aarch64 `char` is
unsigned but on x86 is signed. This is why it had worked so far without
any issues.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-01 14:55:00 +11:00
Jeremy Soller 8ad1d3c110 Merge branch 'fix-netdb-test' into 'master'
Move netdb to varied output test

See merge request redox-os/relibc!766
2025-11-29 06:44:56 -07:00
Wildan M 7e48f2d2fc Move netdb to varied output test 2025-11-28 19:08:32 -08:00
Josh Megnauth 8e5937ca25 Implement posix_fallocate
`posix_fallocate` ensures that a byte range in a file is allocated so
that subsequent writes don't fail. Unlike ftruncate, posix_fallocate
does not shrink files.

The Linux syscall fallocate is similar to posix_fallocate except with
far more control over how byte ranges are allocated (e.g. it supports
file holes and other features). This MR doesn't implement fallocate as
it requires syscall and redoxfs support.

Finally, I changed the flags for flock from usize to c_int. That matches
what we have in libc and also avoids some silly, needless type casting.
2025-11-28 19:49:21 -05:00