tests: When a store item is to be deleted, make it statistically unique.
commit834ea02ad82932e0f17e37dbd5c51497ecf7557f
authorLudovic Courtès <ludo@gnu.org>
Tue, 4 Nov 2014 20:11:10 +0000 (4 21:11 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 4 Nov 2014 20:13:28 +0000 (4 21:13 +0100)
tree666715054751f89c69f8b158bc74c97ed2ad542d
parent000c59b6719250ee94a597418765c2f7f0ad3969
tests: When a store item is to be deleted, make it statistically unique.

Fixes <http://bugs.gnu.org/18935>.
Reported by Mark H Weaver <mhw@netris.org>.

Previously, if tests/nar.scm ran concurrently with tests/gexp.scm, the
store item "foo" containing the string "Hello, world!" could be
deleted (via 'delete-paths') from the tests/nar.scm daemon while the
tests/gexp.scm daemon would still consider it live.

* tests/nar.scm ("restore-file-set (missing signature)"):
  Use (random-text) rather than "Hello, world!", to avoid concurrent
  deletion of store item "foo" used in tests/gexp.scm.
tests/nar.scm