summaryrefslogtreecommitdiff
path: root/tests/matrix/fallocate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/matrix/fallocate_test.go')
-rw-r--r--tests/matrix/fallocate_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/matrix/fallocate_test.go b/tests/matrix/fallocate_test.go
index c94c070..84eae7e 100644
--- a/tests/matrix/fallocate_test.go
+++ b/tests/matrix/fallocate_test.go
@@ -156,7 +156,13 @@ func TestFallocate(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- err = syscallcompat.Fallocate(fd, FALLOC_DEFAULT, 0, 8110)
+ var plain int64 = 8110
+ if testcase.isSet("-xchacha") {
+ // xchacha has 24 byte ivs instead of 16. 8kiB are two blocks, so
+ // 2x8=16 bytes more.
+ plain = plain - 16
+ }
+ err = syscallcompat.Fallocate(fd, FALLOC_DEFAULT, 0, plain)
if err != nil {
t.Fatal(err)
}