diff options
author | acolyer <acolyer> | 2004-06-02 12:15:00 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-06-02 12:15:00 +0000 |
commit | 572437d8100e38e4295f8a32a2779c69cb2f2895 (patch) | |
tree | 1c3b09d621cfe066024c3f9653d7edc0fe8eaf77 /testing | |
parent | 1c61f2c34bfb9f3b5383c930366b8d3243d08f9e (diff) | |
download | aspectj-572437d8100e38e4295f8a32a2779c69cb2f2895.tar.gz aspectj-572437d8100e38e4295f8a32a2779c69cb2f2895.zip |
ensure that no test involving the checking of timestamps in
directories can complete in < 1 second (File.lastModifiedTime is
only accurate to the second and truncates).
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/org/aspectj/testing/harness/bridge/DirChanges.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/DirChanges.java b/testing/src/org/aspectj/testing/harness/bridge/DirChanges.java index d1e793289..c138d4559 100644 --- a/testing/src/org/aspectj/testing/harness/bridge/DirChanges.java +++ b/testing/src/org/aspectj/testing/harness/bridge/DirChanges.java @@ -116,6 +116,12 @@ public class DirChanges { result &= exists("at start, expected updated file to exist", EXISTS, spec.updated, doCompare); result &= exists("at start, expected removed file to exist", EXISTS, spec.removed, doCompare); startTime = System.currentTimeMillis(); + // ensure tests don't complete in < 1 second, otherwise can confuse fast machines. + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + e.printStackTrace(); + } this.handler = oldHandler; return result; } |