OSDN Git Service

Tweak to "find" tests.
authorRob Landley <rob@landley.net>
Sun, 31 Jan 2016 18:42:16 +0000 (12:42 -0600)
committerRob Landley <rob@landley.net>
Sun, 31 Jan 2016 18:42:16 +0000 (12:42 -0600)
tests/find.test

index 71a3506..4e987b6 100755 (executable)
@@ -70,7 +70,7 @@ testing "find -perm (any failure)" \
 # Still fails
 
 testing "find unterminated -exec {}" \
-  "find dir -type f -exec ls {}" "" "" ""
+  "find dir -type f -exec ls {} 2>/dev/null || echo bad" "bad\n" "" ""
 testing "find -exec {} +" \
   "find dir -type f -exec ls {} +" "dir/file\n" "" ""