aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdnan Begovic <adnan@cyngn.com>2015-10-27 16:45:44 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-29 17:37:32 -0700
commit241e559538e53d92234ba685e690622c3caafa93 (patch)
treecff897b467b604a8061398f01e4417faa6fc20d6 /tests
parent9ad39bfbab7346de3eba7a8b313e8e677ca3201d (diff)
downloadvendor_cmsdk-241e559538e53d92234ba685e690622c3caafa93.zip
vendor_cmsdk-241e559538e53d92234ba685e690622c3caafa93.tar.gz
vendor_cmsdk-241e559538e53d92234ba685e690622c3caafa93.tar.bz2
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
Diffstat (limited to 'tests')
-rw-r--r--tests/src/org/cyanogenmod/tests/versioning/unit/ClassPathTest.java32
1 files changed, 0 insertions, 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<String> classPathJars = new ArrayList<String>();
-
- 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<String> getLoadedClasses() {
ArrayList<String> listOfClasses = new ArrayList<String>();
try {