Commit 80402ea8 authored by Chris Lamb's avatar Chris Lamb

tests/touch: Failing an XFail test should be a failure.

parent fb34e619
......@@ -20,16 +20,20 @@ fi
touch ${FILENAME}
touch -m -d @${EXPECTED} ${FILENAME}
RESULT="$(stat --format=%Y ${FILENAME})"
if [ "${RESULT}" != "${EXPECTED}" ]
if [ "${RESULT}" = "${EXPECTED}" ]
then
Fail "test2: Did not XFail"
else
XFail "test2: Got=${RESULT} Expected=${EXPECTED}"
fi
touch ${FILENAME}
touch -a -d @${EXPECTED} ${FILENAME}
RESULT="$(stat --format=%X ${FILENAME})"
if [ "${RESULT}" != "${EXPECTED}" ]
if [ "${RESULT}" = "${EXPECTED}" ]
then
Fail "test3: Did not XFail"
else
XFail "test3: Got=${RESULT} Expected=${EXPECTED}"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment