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-11 11:42:13 +0100
commit89907dba5662e24ebddcaf9f35998163e55e3692 (patch)
tree8d5bf1bd627256d889c007d9c9b5d4864b0d0360 /annotations/generate_annotated_java_files.py
parent4ef244c9037adb8061bce73dd72f89389691b6da (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) (cherry picked from commit 63b31e9a29284933527336b110e45d1ebf6a7359) Change-Id: Ie16735f7b1a79a48ee2adf8c4e413266e286f4cf
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions