summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-02-24 18:16:28 -0800
committerElliott Hughes <enh@google.com>2010-02-24 18:16:28 -0800
commit771455b06d0960d5725708bc4297207db0be2a8a (patch)
treefb56905b76a3bd4cd9f427c3d753e835ab449faf
parentc6bb9d9fe7801ed33d633db05c3492f1cdddcdcf (diff)
downloadlibcore-771455b06d0960d5725708bc4297207db0be2a8a.zip
libcore-771455b06d0960d5725708bc4297207db0be2a8a.tar.gz
libcore-771455b06d0960d5725708bc4297207db0be2a8a.tar.bz2
Fix a test by syncing with upstream.
This test has been failing for us because of a local modification.
-rw-r--r--sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java b/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java
index d53f078..069d46f 100644
--- a/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java
+++ b/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java
@@ -383,16 +383,9 @@ public class DriverManagerTest extends TestCase {
} // end while
// Check that all the drivers are in the list...
- // BEGIN android-changed
- // We have a ClassLoader issue in the DriverManager: The
- // Drivermanager loads the System drivers in a static initialisation
- // method loadInitialDrivers. This initialisation happens in the cts
- // environment before the test sets the drivers via the system property
- // "jdbc.drivers".
- // Therefore the system drivers are not returned via getDrivers()
- final int noOfSystemDriversLoaded = 2; //DRIVER4 + DRIVER5
- assertEquals("testGetDrivers: Don't see all the loaded drivers - ", numberLoaded - noOfSystemDriversLoaded, i);
- // END android-changed
+ // There might be other drivers loaded in other classes
+ assertTrue("testGetDrivers: Don't see all the loaded drivers - ",
+ i >= numberLoaded);
} // end method testGetDrivers()
static int timeout1 = 25;
@@ -759,5 +752,3 @@ public class DriverManagerTest extends TestCase {
}
} // end class DriverManagerTest
-
-