diff options
author | Jakob Unterwurzacher | 2025-03-12 20:42:15 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-03-12 20:43:23 +0100 |
commit | 3b728b4a01d18a3689c81d5e69c849ff93f799ae (patch) | |
tree | 5b137634c6f4e74bcdb93e45d23da7ffb0a95a1f /tests | |
parent | a3009fe003ad861a7949145e08ecfee994ad83ac (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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/matrix/fallocate_test.go | 4 |
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 { |