mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-10-24 02:08:57 +03:00
tests: stdbuf: check that a child process isn't created
* tests/misc/stdbuf.sh: Add a test case.
This commit is contained in:
@@ -55,6 +55,9 @@ stdbuf -i0 -o0 -e0 true || fail=1 #check all files
|
||||
returns_ 126 env . && { returns_ 126 stdbuf -o1 . || fail=1; } # invalid command
|
||||
returns_ 127 stdbuf -o1 no_such || fail=1 # no such command
|
||||
|
||||
# Test that 'stdbuf' doesn't create a child process.
|
||||
(ulimit -u 0; exec stdbuf -oL true) || fail=1
|
||||
|
||||
# Terminate any background processes
|
||||
cleanup_() { kill $pid 2>/dev/null && wait $pid; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user