aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/test
diff options
context:
space:
mode:
authorGravatar Liam Miller-Cushon <cushon@google.com>2016-12-12 23:32:57 +0000
committerGravatar John Cater <jcater@google.com>2016-12-13 16:30:31 +0000
commit899383dd8dfe221e4ef0082a669bc25f549d3e2b (patch)
tree454d1dde32a11ad084f6f161879ec468f2081ad4 /third_party/ijar/test
parentfb9d52cd397e857d020cc5e8ca5ea0a6220f144f (diff)
Fix ijar's timestamp normalization
0 is not a valid DOS timestamp, days and months start at 1. -- PiperOrigin-RevId: 141818782 MOS_MIGRATED_REVID=141818782
Diffstat (limited to 'third_party/ijar/test')
-rwxr-xr-xthird_party/ijar/test/ijar_test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/ijar/test/ijar_test.sh b/third_party/ijar/test/ijar_test.sh
index 92b5229484..0b9a92fb2d 100755
--- a/third_party/ijar/test/ijar_test.sh
+++ b/third_party/ijar/test/ijar_test.sh
@@ -228,9 +228,9 @@ function test_ijar_output() {
"Interface jar should contain only .class files!"
- # Check that -interface.jar timestamps are all zeros:
+ # Check that -interface.jar timestamps are normalized:
check_eq 0 $(TZ=UTC $JAR tvf $A_INTERFACE_JAR |
- grep -v 'Fri Nov 30 00:00:00 UTC 1979' | wc -l) \
+ grep -v 'Tue Jan 01 00:00:00 UTC 1980' | wc -l) \
"Interface jar contained non-zero timestamps!"