2 testname="$(basename $0)"
4 . "${srcdir}"/binary_locations.sh
6 goldenfile="${srcdir}/test_escapechars.golden"
8 if outfile=$(mktemp); then
9 for executable in "$oldfind" "$ftsfind"
11 if "$executable" . -maxdepth 0 \
12 -printf 'OCTAL1: \1\n' \
13 -printf 'OCTAL2: \02\n' \
14 -printf 'OCTAL3: \003\n' \
15 -printf 'OCTAL4: \0044\n' \
16 -printf 'OCTAL8: \0028\n' \
21 -printf 'VTAB: \v\n' \
23 -printf 'BACKSLASH: \\\n' \
24 -printf 'UNKNOWN: \z\n' \
25 >| "${outfile}" 2>/dev/null; then
26 if cmp "${outfile}" "${goldenfile}"; then
30 echo "FAIL: $executable produced incorrect output:"
32 echo "Expected output was:"
37 echo "FAIL: $executable returned $?" >&2
42 echo "FAIL: could not create a test output file." >&2