summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2017-07-06 17:03:43 +0100
committerVictor Chang <vichang@google.com>2017-07-11 13:15:49 +0100
commit27feef25778031d9c1fc330f0cca570ecb17c188 (patch)
tree0445c3178e17c8895a958260140bffbecfe5f355 /annotations/generate_annotated_java_files.py
parentd93874fdf0745a471c35c315d7aa8dc2701287a7 (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: I8024c9dcb23179a69e1805e66c6b051f1a358800
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions