summaryrefslogtreecommitdiff
path: root/tests/matrix/fallocate_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-23 16:00:21 +0200
committerJakob Unterwurzacher2021-08-23 16:00:41 +0200
commit2fb1d52746eac18f1251e1e303b312fe148d29a8 (patch)
treec2eeff1f8dade4c4afabb2f71683f601885a7a6f /tests/matrix/fallocate_test.go
parent97d8340bd81ddd60baac598d3e25ebfb4decb50c (diff)
tests/matrix: add -xchacha test
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)
}