mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
store: The 'references' parameter of 'add-text-to-store' is now optional.
* guix/store.scm (add-text-to-store): Make 'references' optional.
* tests/store.scm ("dead-paths", "references"): Use 'add-text-to-store'
with no optional argument.
* doc/guix.texi (The Store): Adjust accordingly.
This commit is contained in:
@@ -68,8 +68,7 @@
|
||||
(test-skip (if %store 0 10))
|
||||
|
||||
(test-assert "dead-paths"
|
||||
(let ((p (add-text-to-store %store "random-text"
|
||||
(random-text) '())))
|
||||
(let ((p (add-text-to-store %store "random-text" (random-text))))
|
||||
(member p (dead-paths %store))))
|
||||
|
||||
;; FIXME: Find a test for `live-paths'.
|
||||
@@ -99,7 +98,7 @@
|
||||
|
||||
(test-assert "references"
|
||||
(let* ((t1 (add-text-to-store %store "random1"
|
||||
(random-text) '()))
|
||||
(random-text)))
|
||||
(t2 (add-text-to-store %store "random2"
|
||||
(random-text) (list t1))))
|
||||
(and (equal? (list t1) (references %store t2))
|
||||
|
||||
Reference in New Issue
Block a user