aboutsummaryrefslogtreecommitdiff
path: root/tests/test_helpers/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_helpers/helpers.go')
-rw-r--r--tests/test_helpers/helpers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index 1c43d55..d2c12a9 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -298,5 +298,6 @@ func Du(t *testing.T, fd int) (nBytes int64, nBlocks int64) {
if err != nil {
t.Fatal(err)
}
- return st.Blocks * st.Blksize, st.Blocks
+ // On OSX, Blksize is int32, need to cast to int64.
+ return st.Blocks * int64(st.Blksize), st.Blocks
}