From 241e559538e53d92234ba685e690622c3caafa93 Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Tue, 27 Oct 2015 16:45:44 -0700 Subject: [PATCH] cmsdk: Remove systemserverclasspath test. The jars all have oat files now, so iterating them and seeing if they're "clean" is pointless since they're not part of the processes runtime libraries on zygote fork. Change-Id: I8c0e0ce16a84c423e68f8c1749f3676c3bd2931f --- .../tests/versioning/unit/ClassPathTest.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/tests/src/org/cyanogenmod/tests/versioning/unit/ClassPathTest.java b/tests/src/org/cyanogenmod/tests/versioning/unit/ClassPathTest.java index 9c5951f..e1ae1c3 100644 --- a/tests/src/org/cyanogenmod/tests/versioning/unit/ClassPathTest.java +++ b/tests/src/org/cyanogenmod/tests/versioning/unit/ClassPathTest.java @@ -86,38 +86,6 @@ public class ClassPathTest extends AndroidTestCase { } } - @SmallTest - public void testSystemServerClassPathIsClean() { - /** - * Everything in the in the system server class path shouldn't have oat files - * it doesn't matter if it contains the sdk or not since the classes won't be loaded - * as part of the system class loader - */ - final String systemserverclasspath = System.getenv("SYSTEMSERVERCLASSPATH"); - - ArrayList classPathJars = new ArrayList(); - - if (systemserverclasspath != null) { - String[] bootClassPathElements = systemserverclasspath.split(":"); - for (String element : bootClassPathElements) { - classPathJars.add(element); - } - } else { - throw new AssertionError("No SYSTEMSERVERCLASSPATH defined! "); - } - - for (String classPathJar : classPathJars) { - try { - File jar = new File(classPathJar); - DexFile dexFile = new DexFile(jar); - fail("IOException should have been thrown, dex file " - + dexFile.getName() + " should not have an oat file"); - } catch (IOException expected) { - expected.printStackTrace(); - } - } - } - private ArrayList getLoadedClasses() { ArrayList listOfClasses = new ArrayList(); try {