diff options
author | Sven Gothel <[email protected]> | 2010-09-30 21:39:13 +0300 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-06-11 01:52:56 +0200 |
commit | d9ef5751edde2b81f8c3f1e57f64a00a22b36b9d (patch) | |
tree | 88b67f8f66f32c9a74ec99572fa465562ebc4afa | |
parent | dcaf8a1c8736b3fd3748b53e5c67949ad0404dcd (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
-rw-r--r-- | src/junit/com/jogamp/test/junit/util/SingletonInstance.java | 3 |
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 ) ; |