kc3-lang/libbsd/test

Branch :


Log

Author Commit Date CI Message
dd0bdb58 2024-01-08 01:58:54 test: Close all descriptors before initializing them for closefrom() On macOS, closefrom() only sets the close-on-exec flag, so we cannot check whether all file descriptors were closed, which means that if on entry our file descriptor table was filled after the 4th file descriptor, then we might fail the assertions for the flags for odd file descriptors which we expect to be closed. This can easily happen when running the test suite in parallel mode with «make -j8 check» for example. Closes: #23
a44f885c 2023-11-14 19:08:15 test: Fix short-lived memory leak Warned-by: cppcheck
dc1bd1a2 2023-04-23 02:00:10 build: Conditionalize only id-from-name functions not the entire pwcache On macOS the name-from-id functions are present, but not the id-from-name ones, so we want to provide those instead of suppressing the entire file.
edc746ea 2023-04-22 22:47:10 build: Conditionalize getprogname()/setprogname on macOS These functions are provided by the system libc, so there is no need for us to provide them.
90b7f3ae 2023-04-17 23:59:19 test: Do not use /dev/null as compiler output file Some ld(1) implementations, such as the one on AIX, do not support using /dev/null as the output filename for the compiled object. Use an actual filename that we will then clean up.
21d12b02 2023-04-04 23:59:05 build: On macOS do not build functions provided by the system We have never built before on macOS, so we can exclude all the functions that are currently provided in the system. Closes: #1 Closes: !3
bc65806c 2023-04-06 23:05:27 build: Select whether to include funopen() in the build system This makes sure we include it when expected, alongside the man pages, and the test cases, and do not accidentally break the ABI if the system starts providing such interface.
fe16f386 2023-04-10 23:11:33 test: Use open_memstream() only if available On Solaris this function is not yet available.
7c652a94 2023-04-10 20:57:14 test: Do not hardcode root:root user and group names On some systems the root group is named wheel, and there is no root group.
ed2eb31d 2023-04-01 02:46:22 test: Fix closefrom() test on macOS On macOS we do not close the file descriptors, and instead mark them all as close-on-exec. So checking whether they are not valid does not work.