tests: Avoid sleep when causing a write errorCause a write error using a fifo and wait, rather than needing a sleepto wait for something to terminate. This is faster and avoids apotential test fa
tests: Avoid sleep when causing a write errorCause a write error using a fifo and wait, rather than needing a sleepto wait for something to terminate. This is faster and avoids apotential test failure on a heavily loaded system.Using /dev/full would be simpler, but it is not portable enough (ittends not to be available in jails, even). Starting programs with stdoutnot open or only open for read/execute/search may have unexpected sideeffects.Reviewed by: ngie, desDifferential Revision: https://reviews.freebsd.org/D57213
show more ...
yes: fix argv test race between fork and execThe argv test checks ps(1) output immediately after backgrounding yes(1), butthe forked child briefly shows the parent shell's argv before exec(2) repl
yes: fix argv test race between fork and execThe argv test checks ps(1) output immediately after backgrounding yes(1), butthe forked child briefly shows the parent shell's argv before exec(2) replaces it.This caused intermittent failures where ps(1) captured the atf shell wrappercommand line instead of "yes y".Approved by: desSponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D56231
yes: Add testsMFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D55802