Commit d606f262 authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann

Add two tests

one passing and
one "FIXME" XFail that needs a code fix
parent ee367870
......@@ -19,6 +19,10 @@ Fail () {
exit 1
}
XFail () {
echo "XFail: ${*}"
}
Expect () {
ENTRIES="$(Get_entries)"
EXPECTED="${1}"
......
#!/bin/sh
. ./common
Mount
f=target/a
exmtime=12345678
touch $f
touch -d @$exmtime $f
mtime=$(stat --format=%Y $f)
[ "$mtime" = "$exmtime" ] || Fail "test1: Got=$mtime Expected=$exmtime"
touch $f
# This is what tar xf does for extracted files via futimens(2)
touch -m -d @$exmtime $f
mtime=$(stat --format=%Y $f)
[ "$mtime" = "$exmtime" ] || XFail "test2: Got=$mtime Expected=$exmtime" # FIXME
touch $f
Unmount
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