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