Commit Graph

21 Commits

Author SHA1 Message Date
Wildan M 6acf560ed0 Fix pthread init and null for C++ 2026-06-04 00:38:58 +07:00
Wildan M f5dd08dc49 Add and fix pthread rwlock timeout tests 2026-03-29 11:31:08 +07:00
Wildan M 46379d7001 Make test files buildable for glibc 2026-03-25 03:11:33 +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
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 242ed32b42 Implement pthread_cond_timedwait futex properly 2026-01-06 15:33:58 +07:00
Wildan M 7f30fd2c42 Restore correct sleep values 2026-01-05 14:38:39 +07:00
Wildan M fb01e89508 Adjust test sleeps 2025-12-18 10:13:40 +07:00
4lDO2 2fb247266b Fix typo in pthread_exit test. 2025-04-19 19:27:00 +02:00
4lDO2 9e769fcb57 Add pthread_exit test.
This caught a bug in the kernel where it would return Ok(24) when
passing zero extra-munmap length.
2025-04-19 19:27:00 +02:00
Anhad Singh a527cc53ea tests(pthread): status must be 0 if not leader
Fix CI break.

man pthread_barrier_wait(3)
> ...the constant PTHREAD_BARRIER_SERIAL_THREAD shall be returned to
> one *unspecified* thread and zero shall be  returned  to  each  of  the  remaining
> threads.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2024-12-05 16:24:10 +11:00
Jacob Lorentzon 1fba2ef10a Various futex fixes 2024-04-05 20:31:06 +00:00
4lDO2 5f929ed51e Enable -Wextra in tests. 2023-11-12 12:07:49 +01:00
4lDO2 c76a12347f Enforce -Werror in tests. 2023-11-12 11:45:15 +01:00
4lDO2 84e5b41200 Improve once test. 2023-05-06 17:02:55 +02:00
4lDO2 d8bc60e0fb Add more pthread tests. 2023-05-06 17:02:55 +02:00
4lDO2 7e91f3f950 Add pthread tests. 2023-05-06 17:02:54 +02:00