Description: address intermittent test failures Update "outofdate" test case to ensure that the simulated build artifacts (outofdate/gen/*) have dates strictly later than the source files. . It appears that the tests were failure due to a race where "file.done" was considered out of date and thus appeared in the source set, despite being configured as up to date in the test case. . That said, it's not clear to me how it ever worked in the first place given the logic in OutOfData.outOfDate(): . if ((!ret) && (sourceFile != null)) { ret = sourceFile.lastModified() > targetFile.lastModified(); } . My assumption is that the test was previously broken/flaky, but that time was chunkier (larger quanta) until recently and so the source files had the same timestamp and so weren't strictly newer. . This patch also adds the fork=true attribute to the junit task, which resolves spurious test failures observed after the OutOfDate test was patched. Author: tony mancill Origin: vendor Bug-Debian: https://bugs.debian.org/907763 Forwarded: no Last-Update: 2018-09-03 --- a/test/resources/logic/outofdate.xml +++ b/test/resources/logic/outofdate.xml @@ -92,14 +92,6 @@ - - - - - - - - @@ -108,6 +100,16 @@ + + + + + + + + + + --- a/build.xml +++ b/build.xml @@ -279,7 +279,7 @@ -