mizdebsk commented on PR #186:
URL: https://github.com/apache/ant/pull/186#issuecomment-1107528178
I've added a test case that demonstrates the issue.
Test case is more complex than the actual fix.
Does it mean I have to sign Apache CLA? I have not signed it yet.
The test case is implemented as an AntUnit test. JUnit test case would not
work because the test requires setting environment variable
`SOURCE_DATE_EPOCH`, which must be done by forking JVM - the is no setenv in
Java.
Without the fix the test fails in the following way:
Target: testSourceDateEpoch FAILED
at line 107, column 77
Message: Expected 'TODAY is April 22 2022' but was 'TODAY is
January 16 1970'
took 0.166 sec
And it passes with the fix:
Target: testSourceDateEpoch took 0.164 sec
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]