Skip to content

Commit

Permalink
indexer tests: replace touch with utime
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed May 19, 2024
1 parent d1a88c3 commit 2e9327b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/mldistwatch-misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,9 @@ subtest "the notorious version zero" => sub {
my $pause = PAUSE::TestPAUSE->init_new;

my sub touch_file ($filename, $i) {
my $secs = sprintf '%02i', $i;
system("touch", '-m', '-d', "2020-01-02T03:04:${secs}Z", $filename);
Process::Status->assert_ok("touching $filename");
state $base = 1715832000; # May 16, 2024, Philly time
my $time = $base + $i;
utime $time, $time, $filename || die "Couldn't touch $filename: $!\n";
}

# First, a zero version package.
Expand Down

0 comments on commit 2e9327b

Please sign in to comment.