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