2 testname="$(basename $0)"
4 . "${srcdir}"/binary_locations.sh
6 goldenfile="${srcdir}/test_escapechars.golden"
7 expected='hello^.^world'
9 for executable in "$oldfind" "$ftsfind"
11 if result="$($executable . -maxdepth 0 \
12 -printf 'hello^\cthere' \
13 -exec printf %s {} \; \
14 -printf '^world\n' )"; then
15 if [[ "${result}" != "${expected}" ]]; then
17 echo "$executable produced incorrect output:"
19 echo "Expected output was:"
24 echo "$executable returned $?" >&2