summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-03-24 08:38:38 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-03-24 08:38:38 +0200
commit74e3b497c4149b6b5265f3512e78225621a1cf74 (patch)
tree2a2858415250a3dfb1dd75ea6200f78c0e22792f
parent29f652871ecfd2b53a9656fb177781b4b22db431 (diff)
downloadtar-74e3b497c4149b6b5265f3512e78225621a1cf74.tar.gz
Fix testcase
* tests/time02.at: Sort tar -d output
-rw-r--r--tests/time02.at5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/time02.at b/tests/time02.at
index c55b8ce1..be0360de 100644
--- a/tests/time02.at
+++ b/tests/time02.at
@@ -21,6 +21,7 @@ AT_SETUP([time: clamping mtime])
AT_KEYWORDS([time time02])
AT_TAR_CHECK([
+AT_SORT_PREREQ
export TZ=UTC0
mkdir dir
@@ -30,9 +31,9 @@ touch -d 2016-02-01T00:00:00 dir/c >/dev/null 2>&1 || AT_SKIP_TEST
touch -d 2038-01-01T00:00:00 dir/d >/dev/null 2>&1 || AT_SKIP_TEST
tar -c --mtime 2016-01-15T00:00:00 --clamp-mtime -f archive.tar dir
-tar -d -f archive.tar dir
+tar -d -f archive.tar dir|sort
],
-[1],
+[0],
[
dir/c: Mod time differs
dir/d: Mod time differs