From 9d17fdb2068a5217ffab260db671c1cc50536e04 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 4 Jul 2016 08:20:52 +0200 Subject: tests: OSX: cast st.Blksize to int64 On Linux, Blksize is already int64. But on OSX it is int32 and that caused a compile failure. https://github.com/rfjakob/gocryptfs/issues/15 --- tests/test_helpers/helpers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 } -- cgit v1.2.3