From 9565fd81dc9a19cdbe15304bd19408eb31894946 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 22 May 2024 13:18:26 -0700 Subject: [PATCH] Disable ShadowNativeAllocationRegistryTest$applyFreeFunction_matrix for Android V and above. The free function in Matrix was refactored and relocated for Android V. We need to find a different one to test. PiperOrigin-RevId: 636271659 --- .../nativegraphics/ShadowNativeAllocationRegistryTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ShadowNativeAllocationRegistryTest.java b/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ShadowNativeAllocationRegistryTest.java index 0fce5d5afee..7514c422192 100644 --- a/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ShadowNativeAllocationRegistryTest.java +++ b/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/ShadowNativeAllocationRegistryTest.java @@ -17,10 +17,13 @@ import org.robolectric.util.reflector.Accessor; import org.robolectric.util.reflector.ForType; import org.robolectric.util.reflector.Static; +import org.robolectric.versioning.AndroidVersions.U; @RunWith(RobolectricTestRunner.class) @Config(minSdk = O) public final class ShadowNativeAllocationRegistryTest { + // TODO(hoisie): choose a different free function to test in V and above. + @Config(maxSdk = U.SDK_INT) @Test public void applyFreeFunction_matrix() throws Exception { WeakReference weakMatrix = new WeakReference<>(newMatrix());