aboutsummaryrefslogtreecommitdiff
path: root/testsuite/find.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/find.tests')
-rwxr-xr-xtestsuite/find.tests26
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/find.tests b/testsuite/find.tests
index 345d1e82e..f041106c3 100755
--- a/testsuite/find.tests
+++ b/testsuite/find.tests
@@ -15,6 +15,32 @@ testing "find -type f" \
15 "./testfile\n" \ 15 "./testfile\n" \
16 "" "" 16 "" ""
17 17
18optional FEATURE_FIND_EXEC
19testing "find -exec exitcode 1" \
20 "cd find.tempdir && find testfile -exec true {} \; 2>&1; echo \$?" \
21 "0\n" \
22 "" ""
23SKIP=
24optional FEATURE_FIND_EXEC_PLUS
25testing "find -exec exitcode 2" \
26 "cd find.tempdir && find testfile -exec true {} + 2>&1; echo \$?" \
27 "0\n" \
28 "" ""
29SKIP=
30# Surprisingly, "-exec false ;" results in exitcode 0! "-exec false +" is different!!!
31optional FEATURE_FIND_EXEC
32testing "find -exec exitcode 3" \
33 "cd find.tempdir && find testfile -exec false {} \; 2>&1; echo \$?" \
34 "0\n" \
35 "" ""
36SKIP=
37optional FEATURE_FIND_EXEC_PLUS
38testing "find -exec exitcode 4" \
39 "cd find.tempdir && find testfile -exec false {} + 2>&1; echo \$?" \
40 "1\n" \
41 "" ""
42SKIP=
43
18# testing "description" "command" "result" "infile" "stdin" 44# testing "description" "command" "result" "infile" "stdin"
19 45
20rm -rf find.tempdir 46rm -rf find.tempdir