diff options
author | Victor Chang <vichang@google.com> | 2017-07-06 17:03:43 +0100 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2017-07-12 16:42:25 +0100 |
commit | fac06a434f4498173f0d2ed675eae7285ec3ef18 (patch) | |
tree | db1cbc0e1337b5a62cba04f4dcfff5f842ef59d8 /include/ScopedJavaUnicodeString.h | |
parent | d93874fdf0745a471c35c315d7aa8dc2701287a7 (diff) |
Make ZipEntryTest time-insensitive
Fix ZipEntryTest to not depend on the current system time.
The ZIP format represents timestamps outside of DOS time
(before 1980) via an extra field.
ZipEntryTest.testCommentAndExtraInSameOrder() asserts that
the extra field can be read back unchanged, but since it
defaulted to the current system time, this check failed
when the system time was before 1980.
This CL fixes the test by explicitly setting a timestamp
in 2010 on the new entry. It also adds new tests for the
behavior difference before/after 1980.
Bug: 37696493
Test: cts-tradefed run cts -m CtsLibcoreTestCases -t \
libcore.java.util.zip.ZipEntryTest
Test: cts-tradefed run cts -m CtsLibcoreTestCases -t \
libcore.java.util.zip.ZipOutputStreamTest
Change-Id: I179c193e503ec1f2c5549327ab64a15a33e5866b
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions