summaryrefslogtreecommitdiff
path: root/tests/cve.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-10-20 22:03:12 +0200
committerLudovic Courtès <ludo@gnu.org>2019-10-20 23:26:50 +0200
commit79c03e55e26d88c8d327daced02367abe7f17f91 (patch)
tree140d949e6da45a82b27fab63120247359ba92489 /tests/cve.scm
parentd04285647dda1d5b8b49de22a4cb91614e725093 (diff)
downloadpatches-79c03e55e26d88c8d327daced02367abe7f17f91.tar
patches-79c03e55e26d88c8d327daced02367abe7f17f91.tar.gz
tests: Avoid now-deprecated 'make-struct'.
* tests/cve.scm (vulnerability): Use 'make-struct/no-tail' instead of 'make-struct', which is deprecated. * tests/lint.scm ("cve: one vulnerability") ("cve: one patched vulnerability") ("cve: known safe from vulnerability") ("cve: vulnerability fixed in replacement version") ("cve: patched vulnerability in replacement"): Likewise.
Diffstat (limited to 'tests/cve.scm')
-rw-r--r--tests/cve.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cve.scm b/tests/cve.scm
index 3fbb22d3c6..e95b21c073 100644
--- a/tests/cve.scm
+++ b/tests/cve.scm
@@ -25,7 +25,7 @@
(search-path %load-path "tests/cve-sample.xml"))
(define (vulnerability id packages)
- (make-struct (@@ (guix cve) <vulnerability>) 0 id packages))
+ (make-struct/no-tail (@@ (guix cve) <vulnerability>) id packages))
(define %expected-vulnerabilities
;; What we should get when reading %SAMPLE.