Skip to content

Commit

Permalink
Fix tests requiring the mtime to change (#1379)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
  • Loading branch information
jeremiedimino authored Oct 2, 2018
1 parent 30030a8 commit 7f9bbe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
(action (system "\| echo hello >> data
"\| # To force the mtime to change:
"\| # https://github.com/ocaml/dune/pull/1359
"\| touch -d tomorrow data
"\| touch -t 01010000 data
)))
5 changes: 5 additions & 0 deletions test/blackbox-tests/test-cases/github1342/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ _build, things are rebuild as expected.
$ cat _build/default/x
42
$ echo 0 > _build/default/x

To force the mtime to change:
https://github.com/ocaml/dune/pull/1359

$ touch -t 01010000 _build/default/x
$ dune build x
$ cat _build/default/x
42

0 comments on commit 7f9bbe9

Please sign in to comment.