summaryrefslogtreecommitdiffstats
path: root/tests/AndroidTests
diff options
context:
space:
mode:
authorBrett Chabot <>2009-04-10 14:13:32 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-10 14:13:32 -0700
commit732bde73f9468c959045eae5b2aa2aa1af3b9b78 (patch)
tree2811c5df636de2fb7cd3370a3bd4cd6acc374e8a /tests/AndroidTests
parentd7e447589831e970c5180f0fb1e0df5914074b66 (diff)
downloadframeworks_base-732bde73f9468c959045eae5b2aa2aa1af3b9b78.zip
frameworks_base-732bde73f9468c959045eae5b2aa2aa1af3b9b78.tar.gz
frameworks_base-732bde73f9468c959045eae5b2aa2aa1af3b9b78.tar.bz2
AI 145735: Suppress the flaky DatabaseLockTest
BUG=1777453 Automated import of CL 145735
Diffstat (limited to 'tests/AndroidTests')
-rw-r--r--tests/AndroidTests/src/com/android/unit_tests/DatabaseLockTest.java9
1 files 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 bb821e3..326f873 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;