HardenedBSD/contrib/unifdef/tests/outperms.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
213 B
Bash
Raw Normal View History

2023-08-21 19:33:26 +02:00
umask 027
unifdef -DFOO=1 -DFOOB=42 -UBAR -ooutfile.c if1.c
e=$?
2023-08-21 19:33:42 +02:00
case ${BUILD_MINGW} in
(yes) printf '%s\n' '-rw-r-----' 1>&2 ;;
(*) ls -l outfile.c | cut -d' ' -f1 1>&2 ;;
esac
2023-08-21 19:33:26 +02:00
cat outfile.c
rm outfile.c
exit $e