aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-03-12 20:42:15 +0100
committerJakob Unterwurzacher2025-03-12 20:43:23 +0100
commit3b728b4a01d18a3689c81d5e69c849ff93f799ae (patch)
tree5b137634c6f4e74bcdb93e45d23da7ffb0a95a1f
parenta3009fe003ad861a7949145e08ecfee994ad83ac (diff)
tests: matrix: fix TestFallocateaegis
Error was: --- FAIL: TestFallocate (0.01s) fallocate_test.go:172: Expected 8192 allocated bytes, have 12288 https://github.com/rfjakob/gocryptfs/pull/900
-rw-r--r--tests/matrix/fallocate_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/matrix/fallocate_test.go b/tests/matrix/fallocate_test.go
index ade6415..44ea541 100644
--- a/tests/matrix/fallocate_test.go
+++ b/tests/matrix/fallocate_test.go
@@ -161,6 +161,10 @@ func TestFallocate(t *testing.T) {
// xchacha has 24 byte ivs instead of 16. 8kiB are two blocks, so
// 2x8=16 bytes more.
plain = plain - 16
+ } else if testcase.isSet("-aegis") {
+ // aegis256 has 32 byte ivs and mac instead of 16. 8kiB are two blocks, so
+ // 2x32=64 bytes more.
+ plain = plain - 64
}
err = syscallcompat.Fallocate(fd, FALLOC_DEFAULT, 0, plain)
if err != nil {