Commit Graph

13 Commits

Author SHA1 Message Date
Wildan M 46379d7001 Make test files buildable for glibc 2026-03-25 03:11:33 +07:00
Josh Megnauth 1d5179eb71 Const calculate buffer size for strerror
The current buffer size is hard set to 256. Using const evaluation, the
maximum buf size can be calculated at compile time.
2025-07-10 03:18:17 +00:00
oddcoder d373bcb032 Avoid accessing memory without initialization 2020-05-08 22:38:42 +02:00
Mateusz Mikuła 1ebd8a3d72 Handle zero length for strerror_r 2019-04-24 17:42:28 +02:00
Mateusz Mikuła c68a0d5678 Add POSIX strerror_r 2019-04-19 17:59:56 +02:00
Tibor Nagy 9a0ea6ff34 tests: More refactoring, add helper header to every test, override exit for better error reporting 2019-02-21 21:13:28 +01:00
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00
Tibor Nagy c19cc8b731 tests: Portability fixes, replaced 0/1/-1 return codes with macros 2019-02-20 20:20:07 +01:00
Tibor Nagy ff874c87d7 tests: Fix function signatures 2019-02-20 19:27:18 +01:00
Jeremy Soller dd847cc67e Return with 0 in all tests 2018-03-12 21:55:46 -06:00
Paul Sajna 3b7149612f implement perror 2018-03-07 20:57:51 -08:00
Jeremy Soller 1127c36ceb Add strerror to error test 2018-03-07 21:01:48 -07:00
Paul Sajna 93ddcca294 add test for errno 2018-03-07 18:36:18 -08:00