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 . Since ,
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
Test: make cts && cts-tradefed run cts -m CtsLibcoreTestCases \
Test: Checked that nothing else broke:
make cts && cts-tradefed run cts -m CtsLibcoreTestCases
(libcore commit bce13c50c300d35ebf91e6592951f7756c784736)
1 file changed