aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-09-30 21:39:13 +0300
committerSven Gothel <[email protected]>2011-06-11 01:52:56 +0200
commitd9ef5751edde2b81f8c3f1e57f64a00a22b36b9d (patch)
tree88b67f8f66f32c9a74ec99572fa465562ebc4afa /src
parentdcaf8a1c8736b3fd3748b53e5c67949ad0404dcd (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/junit/com/jogamp/test/junit/util/SingletonInstance.java3
1 files changed, 3 insertions, 0 deletions
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 ) ;