me
/
guix
Archived
1
0
Fork 0

gnu: libgit2: Work around time-dependent unit test.

Fixes <https://issues.guix.gnu.org/55326>.

* gnu/packages/version-control.scm (libgit2)[source]: Augment 'snippet'
to modify "tests/refs/revparse.c".
master
Ludovic Courtès 2022-05-08 23:12:02 +02:00
parent f226e051f5
commit e48b5484af
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 10 additions and 1 deletions

View File

@ -802,7 +802,16 @@ to GitHub contributions calendar.")
(base32
"0vgpb2175a5dhqiy1iwywwppahgqhi340i8bsvafjpvkw284vazd"))
(modules '((guix build utils)))
(snippet '(delete-file-recursively "deps"))))
(snippet
'(begin
(delete-file-recursively "deps")
;; The "refs:revparse::date" test is time-dependent: it
;; assumes "HEAD@{10 years ago}" doesn't match anything,
;; which is no longer true. Adjust that test.
(substitute* "tests/refs/revparse.c"
(("10 years ago")
"100 years ago"))))))
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments