xref: /freebsd/contrib/unifdef/tests/overperms.sh (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
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