[DESCRIPTION]
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields 失败。
unit.framework.AssertionFailedError: Expected exception type was java.lang.IllegalArgumentException but caught java.lang.SecurityException: Shortcut package name mismatch (message=)
at junit.framework.Assert.fail(Assert.java:50)
at junit.framework.Assert.assertTrue(Assert.java:20)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:427)
at com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertExpectException(ShortcutManagerTestUtils.java:408)
[SOLUTION]
可以豁免,请参考以下信息:
android.content.pm.cts.shortcutmanager.ShortcutManagerClientApiTest#testShortcutInfoMissingMandatoryFields is waived for devices with Sept SPL until the Google patch is integrated into a future CTS version. This is waived across Android versions based on below patches.
https://android-review.googlesource.com/c/platform/cts/+/735922
https://android-review.googlesource.com/c/platform/cts/+/735923
https://android-review.googlesource.com/c/platform/cts/+/735924
https://android-review.googlesource.com/c/platform/cts/+/735925