aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-11-01 19:20:55 +0100
committerJakob Unterwurzacher2016-11-01 19:25:59 +0100
commitd15122d3d6b67d42617ed9950ce5273d0dba64fd (patch)
treecf8928a9335ec7b1fea3e03fd8a32042a8485189 /tests
parentf4c367381ea4884a9b460e073a7809665031a88c (diff)
Add Go 1.4 compatibility layer for raw64
Using raw64 will not work, but at least it will compile.
Diffstat (limited to 'tests')
-rw-r--r--tests/matrix/matrix_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index e1bb243..55f3947 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -24,6 +24,7 @@ import (
"testing"
"github.com/rfjakob/gocryptfs/internal/cryptocore"
+ "github.com/rfjakob/gocryptfs/internal/nametransform"
"github.com/rfjakob/gocryptfs/internal/syscallcompat"
"github.com/rfjakob/gocryptfs/tests/test_helpers"
)
@@ -63,6 +64,10 @@ func TestMain(m *testing.M) {
fmt.Printf("Skipping Go GCM variant, Go installation is too old")
continue
}
+ if testcase.raw64 && !nametransform.HaveRaw64 {
+ fmt.Printf("Skipping raw64 test, Go installation is too old")
+ continue
+ }
if testing.Verbose() {
fmt.Printf("matrix: testcase = %#v\n", testcase)
}