mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
tests: Corrupt archive import test is robust against different store prefixes.
* tests/store.scm ("import corrupt path"): Set 'index' to #x70.
This commit is contained in:
parent
33349e91f9
commit
1a0adad83f
1 changed files with 3 additions and 2 deletions
|
@ -758,8 +758,9 @@ (define ref-hash
|
|||
(cut export-paths %store (list file) <>))))
|
||||
(delete-paths %store (list file))
|
||||
|
||||
;; Flip a bit in the stream's payload.
|
||||
(let* ((index (quotient (bytevector-length dump) 4))
|
||||
;; Flip a bit in the stream's payload. INDEX here falls in the middle of
|
||||
;; the file contents in DUMP, regardless of the store prefix.
|
||||
(let* ((index #x70)
|
||||
(byte (bytevector-u8-ref dump index)))
|
||||
(bytevector-u8-set! dump index (logxor #xff byte)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue