TITLE='Read an empty GPX file'
PRECOMMAND='cat "$STAGINGDIR/point1-1.jpg" >"$LOGDIR/test.jpg"'
COMMAND='$PROGRAM -g /dev/null "$LOGDIR/test.jpg" 2> "$OUTFILE" > /dev/null'
POSTCOMMAND='rm -f "$LOGDIR/test.jpg"'
RESULTCODE=1
# libxml2 versions 2.9.1 and below have slightly different diagnostic output
# that causes this test to fail
# libxml2 versions 2.9.4 (at least) adds some unuseful diagnostic lines
# beginning with ^ that are removed here
# libxml2 version 2.7.7 adds an extra Start tag expected message
# Windows targets use nul instead of /dev/null, so canonicalize on the former
SEDCOMMAND='/(^\^?$)|(Start tag expected)/d;s@/dev/null@nul@'
