From 23d1b4b21c526f974a9300a24949759102c4db44 Mon Sep 17 00:00:00 2001 From: Brett Chabot <> Date: Tue, 14 Apr 2009 12:38:22 -0700 Subject: [PATCH] AI 146177: am: CL 145969 am: CL 145735 Suppress the flaky DatabaseLockTest Original author: brettchabot Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 146177 --- .../src/com/android/unit_tests/DatabaseLockTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/AndroidTests/src/com/android/unit_tests/DatabaseLockTest.java b/tests/AndroidTests/src/com/android/unit_tests/DatabaseLockTest.java index bb821e309c3cb..326f873630f89 100644 --- a/tests/AndroidTests/src/com/android/unit_tests/DatabaseLockTest.java +++ b/tests/AndroidTests/src/com/android/unit_tests/DatabaseLockTest.java @@ -20,6 +20,7 @@ import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.test.suitebuilder.annotation.LargeTest; +import android.test.suitebuilder.annotation.Suppress; import android.util.Log; import java.io.File; import java.util.concurrent.atomic.AtomicInteger; @@ -29,7 +30,11 @@ import junit.framework.TestCase; /* * This is a series of unit tests for database locks. + * + * Suppress these tests for now, since they have has inconsistent results. + * This should be turned into a performance tracking test. */ +@Suppress public class DatabaseLockTest extends AndroidTestCase { private static final int NUM_ITERATIONS = 100; @@ -66,7 +71,7 @@ public class DatabaseLockTest extends AndroidTestCase { * same database at the same time with the same prioritization, neither thread * is locked out and prevented from accessing the database. */ - @LargeTest + @Suppress public void testLockFairness() { startDatabaseFairnessThread(); int previous = 0; @@ -116,7 +121,7 @@ public class DatabaseLockTest extends AndroidTestCase { * the same database, the locking/unlocking of the database is done within an * appropriate amount of time (MAX_ALLOWED_LATENCY_TIME). */ - @LargeTest + @Suppress public void testLockLatency() { startDatabaseLatencyThread(); int previous = 0;