Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Java version: 1.8.0_171, vendor: Oracle Corporation
Java home: C:\java\jdk8x64\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
I get an test failure in torque-generator running mvn clean test:
It fails at this line (the first teste after initialization and the content was moved)
Apparently unchangedOutput.txt should not have changed the lastModified.... (I expanded the assert to get a little more information.) The reported time difference (about 1000msec) is due to
in the test and is apparently only there because checkSourceModified returns true (I read
TORQUE-338, this might be also still another issue), i.e. it's not the reason, why itt fails, but a consequence of it.
Investigating the source code I found, that, if I comment out this
which is called, if isRunOnlyOnSourceChange is true for the unitConfiguration, the failure is gone.
The time difference there between lastGenerationTime and sourceLastModified is alwasy below 100ms (sometimes only 25ms), and might be due to the OS environment. This might be a windows problem? One solution might be to remove the milliseconds.
If I replace the code with
all the tests run successfully.