summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-02-24 18:06:01 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-24 18:06:01 -0800
commit9b1e9edff5036745c14fb52553f8417a274ad9de (patch)
tree074e62fbc3d173f4fe69ad8a067946f57505761a
parent21a20a39aeb083335fabd1d1098a73977131ec3f (diff)
parent7db3e5e287087d9665ffa84ecbe87603001fc55f (diff)
downloadframeworks_base-9b1e9edff5036745c14fb52553f8417a274ad9de.zip
frameworks_base-9b1e9edff5036745c14fb52553f8417a274ad9de.tar.gz
frameworks_base-9b1e9edff5036745c14fb52553f8417a274ad9de.tar.bz2
Merge "AsecTests: Add teardown to tests"
-rwxr-xr-xtests/AndroidTests/src/com/android/unit_tests/AsecTests.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java b/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
index e85254d..5aaf13b 100755
--- a/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
+++ b/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
@@ -55,6 +55,7 @@ public class AsecTests extends AndroidTestCase {
void failStr(String errMsg) {
Log.w(TAG, "errMsg="+errMsg);
}
+
void failStr(Exception e) {
Log.w(TAG, "e.getMessage="+e.getMessage());
Log.w(TAG, "e="+e);
@@ -67,6 +68,13 @@ public class AsecTests extends AndroidTestCase {
cleanupContainers();
}
+ @Override
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ if (localLOGV) Log.i(TAG, "Cleaning out old test containers");
+ cleanupContainers();
+ }
+
private void cleanupContainers() throws RemoteException {
IMountService ms = getMs();
String[] containers = ms.getSecureContainerList();