xref: /freebsd/contrib/unifdef/tests/outperms.sh (revision ba7b7f94c239ce43343d7af403734fdc941b7664)
1umask 027
2unifdef -DFOO=1 -DFOOB=42 -UBAR -ooutfile.c if1.c
3e=$?
4case ${BUILD_MINGW} in
5(yes)	printf '%s\n' '-rw-r-----' 1>&2 ;;
6(*)	ls -l outfile.c | cut -d' ' -f1 1>&2 ;;
7esac
8cat outfile.c
9rm outfile.c
10exit $e
11