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