From 84d6fafeca8f1d7b1b631a56fc3dc47016c4ba31 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 8 Sep 2018 18:19:53 +0200 Subject: tests: restore Go 1.7 compatibility Go 1.7 does not have t.Name() yet. --- tests/matrix/matrix_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/matrix/matrix_test.go') diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 19a6245..4938ba9 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -886,7 +886,9 @@ func TestMagicNames(t *testing.T) { // Test that chmod works correctly func TestChmod(t *testing.T) { - path := test_helpers.DefaultPlainDir + "/" + t.Name() + // Note: t.Name() is not available before in Go 1.8 + tName := "TestChmod" + path := test_helpers.DefaultPlainDir + "/" + tName file, err := os.Create(path) if err != nil { t.Fatal(err) -- cgit v1.2.3