[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: tests: Corrupt archive import test is robust against different st
From: |
Ludovic Courtès |
Subject: |
06/06: tests: Corrupt archive import test is robust against different store prefixes. |
Date: |
Sat, 6 May 2017 18:18:45 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1a0adad83f804d1d7190af7accb58284e4c69e3e
Author: Ludovic Courtès <address@hidden>
Date: Sun May 7 00:16:01 2017 +0200
tests: Corrupt archive import test is robust against different store
prefixes.
* tests/store.scm ("import corrupt path"): Set 'index' to #x70.
---
tests/store.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/store.scm b/tests/store.scm
index 3eb8b7b..45aeb32 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -758,8 +758,9 @@
(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)))
- branch master updated (74b8671 -> 1a0adad), Ludovic Courtès, 2017/05/06
- 06/06: tests: Corrupt archive import test is robust against different store prefixes.,
Ludovic Courtès <=
- 01/06: store: Use 'TCP_NODELAY' when connecting to a daemon over PF_INET., Ludovic Courtès, 2017/05/06
- 04/06: maint: Add 'time-monotonic' bug workaround in build-aux/hydra/evaluate.scm., Ludovic Courtès, 2017/05/06
- 03/06: maint: Add 'update-guix-package' target., Ludovic Courtès, 2017/05/06
- 05/06: build: Use 'guix pack -K' for the 'guix-binary*.tar.xz' targets., Ludovic Courtès, 2017/05/06
- 02/06: gnu: guix: Remove the stable-release 'guix' package., Ludovic Courtès, 2017/05/06