| b49682bb | 01-Oct-2021 |
Eric van Gyzen <[email protected]> |
sem_clockwait_np test: fix usage of ATF API
ATF_REQUIRE_ERRNO requires the given errno iff the given expression is true. These test cases used it incorrectly, potentially allowing sem_clockwait_np
sem_clockwait_np test: fix usage of ATF API
ATF_REQUIRE_ERRNO requires the given errno iff the given expression is true. These test cases used it incorrectly, potentially allowing sem_clockwait_np to succeed when it was expected to fail. Use separate ATF calls to require failure and the expected errno.
MFC after: 1 week Sponsored by: Dell EMC Isilon
(cherry picked from commit 35e4527e88d3843cccf2f15a32b1fa041a01d693)
show more ...
|
| 190a6b5a | 01-Oct-2021 |
Eric van Gyzen <[email protected]> |
sem test: move sem_clockwait_np tests into individual cases
Move these tests into individual test cases for all the usual reasons. No functional change intended.
MFC after: 1 week Sponsored by: Del
sem test: move sem_clockwait_np tests into individual cases
Move these tests into individual test cases for all the usual reasons. No functional change intended.
MFC after: 1 week Sponsored by: Dell EMC Isilon
(cherry picked from commit 2334abfd01ba92dfa6a7ab6f2c4cc45fa64ffd3c)
show more ...
|
| c8f83698 | 01-Mar-2021 |
Alex Richardson <[email protected]> |
Allow ssp_test:read to pass more reliably
It appears that the stackframe layout can be slightly different depending on compiler and target architecture. For example, when using CHERI LLVM for RISC-V
Allow ssp_test:read to pass more reliably
It appears that the stackframe layout can be slightly different depending on compiler and target architecture. For example, when using CHERI LLVM for RISC-V we can actually overflow the buffer by up to 8 bytes without SSP detecting it. Fix this by increasing the overflow to 15 bytes.
Reviewed By: ngie, emaste Differential Revision: https://reviews.freebsd.org/D28997
(cherry picked from commit c88c1f23a8989b881a5ca51223289ddb4ce74277)
show more ...
|
| 1d8b72af | 18-Feb-2021 |
Alex Richardson <[email protected]> |
libc: Fix t_spawn_fileactions test after ATF update
Since https://github.com/freebsd/atf/commit/4581cefc1e3811dd3c926b5dd4b15fd63d2e19da ATF opens the results file on startup. This fixes problems li
libc: Fix t_spawn_fileactions test after ATF update
Since https://github.com/freebsd/atf/commit/4581cefc1e3811dd3c926b5dd4b15fd63d2e19da ATF opens the results file on startup. This fixes problems like capsicumized tests not being able to open the file on exit.
However, this test closes all file descriptors above 3 to get a deterministic fd table allocation for the child. Instead of using closefrom (which will close the ATF output file FD) I've changed this test use the lowest available fd and pass that to the helper program as a string.
We could also try to re-open the results file in ATF if we get a EBADF error, but that will fail when running under Capsicum.
Reviewed By: cem Differential Revision: https://reviews.freebsd.org/D28684
(cherry picked from commit 2aa3ef285a23d802f0bd6c7281612e16834e9b68)
show more ...
|