From 58b4741d3d8eb50bd265e0aa5603923c1e3c04c4 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 13 Nov 2016 15:08:33 -0500 Subject: Redirect stdin from /dev/null for -ok and -okdir. --- tests.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 51f891c..87a0ea1 100755 --- a/tests.sh +++ b/tests.sh @@ -434,7 +434,17 @@ function test_0078() { ! "$BFS" "$perms" -perm +777 2>/dev/null } -for i in {1..78}; do +function test_0079() { + # -ok should close stdin for the executed command + yes | "$BFS" "$basic" -ok cat ';' 2>/dev/null +} + +function test_0080() { + # -okdir should close stdin for the executed command + yes | "$BFS" "$basic" -okdir cat ';' 2>/dev/null +} + +for i in {1..80}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then -- cgit v1.2.3