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 \
Test: Checked that nothing else broke:
      make cts && cts-tradefed run cts -m CtsLibcoreTestCases
Bug: 37380202

    (libcore commit bce13c50c300d35ebf91e6592951f7756c784736)
Change-Id: If2a58b3d59bb5ab75572f2ac4bf0598ad9353851
1 file changed