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