summaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-04 16:04:25 +0200
committerJakob Unterwurzacher2015-10-04 16:04:25 +0200
commit90bd9782831f9d3a3c7c682f9cc04ccef0a1666d (patch)
tree49b72f0edd5c7cf6bd6347432c5c2eb4c9da56b9 /main_test.go
parentaa6fa7f3cf0c7a2ab078ad4648eca742e5acd232 (diff)
truncate: Fix bug that caused xfstests generic/030 to fail
The bug was caused by using cipherOff where plainOff should have been used. Renamed the symbols for less confusion.
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main_test.go b/main_test.go
index de433c7..16b9619 100644
--- a/main_test.go
+++ b/main_test.go
@@ -127,22 +127,22 @@ func TestTruncate(t *testing.T) {
// Grow to two blocks
file.Truncate(7000)
if md5fn(fn) != "95d4ec7038e3e4fdbd5f15c34c3f0b34" {
- t.Fail()
+ t.Errorf("Fail 7000")
}
// Shrink - needs RMW
file.Truncate(6999)
if md5fn(fn) != "35fd15873ec6c35380064a41b9b9683b" {
- t.Fail()
+ t.Errorf("Fail 6999")
}
// Shrink to one partial block
file.Truncate(465)
if md5fn(fn) != "a1534d6e98a6b21386456a8f66c55260" {
- t.Fail()
+ t.Errorf("Fail 465")
}
// Grow to exactly one block
file.Truncate(4096)
if md5fn(fn) != "620f0b67a91f7f74151bc5be745b7110" {
- t.Fail()
+ t.Errorf("Fail 4096")
}
}