openat: don’t close (-1)
[gnulib.git] / tests / test-string-desc.sh
bloba4d92792eb4d56fdee6604400db5ddf55d538fe5
1 #!/bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ .
4 ${CHECKER} test-string-desc${EXEEXT} test-string-desc-3.tmp > test-string-desc-1.tmp || Exit 1
6 printf 'Hello world!The\0quick\0brown\0\0fox\0' > test-string-desc.ok
8 : "${DIFF=diff}"
9 ${DIFF} test-string-desc.ok test-string-desc-1.tmp || { echo "string_desc_fwrite KO" 1>&2; Exit 1; }
10 ${DIFF} test-string-desc.ok test-string-desc-3.tmp || { echo "string_desc_write KO" 1>&2; Exit 1; }
12 Exit 0