mirror of
https://github.com/curl/curl.git
synced 2026-07-16 11:57:17 +03:00
runtests: set SOURCE_DATE_EPOCH to fix failing around midnight
To make sure that `managen` called by test 1706 uses the same date as
the test expects in the `%DATE` macro.
Before this patch when tests started running before UTC midnight and
reached test 1706 after, these dates were different and the test failed.
Follow-up to 0e73b69b3d
Fixes #14173
Closes #14187
This commit is contained in:
parent
c21c51db6a
commit
58772b0e08
1 changed files with 3 additions and 1 deletions
|
|
@ -500,7 +500,9 @@ sub checksystemfeatures {
|
|||
$versretval = runclient($versioncmd);
|
||||
$versnoexec = $!;
|
||||
|
||||
$DATE = strftime "%Y-%m-%d", localtime;
|
||||
my $current_time = int(time());
|
||||
$ENV{'SOURCE_DATE_EPOCH'} = $current_time;
|
||||
$DATE = strftime "%Y-%m-%d", gmtime($current_time);
|
||||
|
||||
open(my $versout, "<", "$curlverout");
|
||||
@version = <$versout>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue