summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-08-10 11:31:08 +0100
committerTobias Thierer <tobiast@google.com>2017-08-10 23:17:25 +0100
commit63b31e9a29284933527336b110e45d1ebf6a7359 (patch)
treec08572b90063cd2cda1c46cc1b3c158f60da27c5 /annotations/generate_annotated_java_files.py
parent4fb1caa6ddc580eabe5acba719feefd9e246fd3b (diff)
Fix test by not asserting stubbed result of LinkPermission.getName().
A test was asserting that LinkPermission.getName() returns null, which was the stubbed behavior on Android prior to commit [1]. Since [1], getName() returns "" instead (a different stubbed behavior), causing the test to fail. This CL changes the test to only assert that the method doesn't throw, but doesn't assert any particular return value. This gets the test passing for now; the test behavior may be reconsidered in the future (bug 37380202). Test: make cts && cts-tradefed run cts -m CtsLibcoreTestCases \ -t libcore.java.nio.file.LinkPermissionTest Test: Checked that nothing else broke: make cts && cts-tradefed run cts -m CtsLibcoreTestCases Bug: 37380202 [1] https://r.android.com/#/c/platform/libcore/+/424841/ (libcore commit bce13c50c300d35ebf91e6592951f7756c784736) Change-Id: If2a58b3d59bb5ab75572f2ac4bf0598ad9353851
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions