From d9ef5751edde2b81f8c3f1e57f64a00a22b36b9d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 30 Sep 2010 21:39:13 +0300 Subject: NEWT/AWT Unit Tests: Run one test at a time via superclass BeforeClass/AfterClass FileLock Due to the fact that any test with a UI may interfere with a UI test (test focus, active, ..), all tests are derived from the common UITestCase superclass, which decorates the test class with a FileLock at BeforeClass/AfterClass. Increased junit timeout to 10 min --- src/junit/com/jogamp/test/junit/util/SingletonInstance.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/junit/com/jogamp') diff --git a/src/junit/com/jogamp/test/junit/util/SingletonInstance.java b/src/junit/com/jogamp/test/junit/util/SingletonInstance.java index 5277511..997742c 100644 --- a/src/junit/com/jogamp/test/junit/util/SingletonInstance.java +++ b/src/junit/com/jogamp/test/junit/util/SingletonInstance.java @@ -74,6 +74,9 @@ public class SingletonInstance { if(tryLock()) { return; } + if(DEBUG && 0==i) { + System.err.println("Wait for lock " + file); + } i++; Thread.sleep(poll_ms); } while ( i < timeout_ms / poll_ms ) ; -- cgit v1.2.3