TITLE='Fix a bad GPS date with --fix-datestamps on a read-only file'
PRECOMMAND='cat "$STAGINGDIR/baddate.jpg" >"$LOGDIR/test.jpg" && chmod a-w "$LOGDIR/test.jpg"'
# Run in C locale to avoid errors when comparing days of week in output
COMMAND='env LC_ALL=C $PROGRAM --fix-datestamps -z -7 "$LOGDIR/test.jpg" > "$OUTFILE" 2>&1'
POSTCOMMAND='rm -f "$LOGDIR/test.jpg"'
RESULTCODE=1
SEDCOMMAND='1s@^.*/@@' # strip path
