From d7db071528cff2450fd766bb48d0303444f18bf5 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 12 Jul 2020 20:58:38 +0200 Subject: tests: TestMagicNames: add warmup rounds Chasing a bug that seems to have nothing to do with magic names, as it already triggers during warmup: --- FAIL: TestMagicNames (0.00s) matrix_test.go:773: Testing n="warmup1" matrix_test.go:773: Testing n="warmup2" matrix_test.go:820: no such file or directory --- tests/matrix/matrix_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 396d15d..b51d927 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -768,7 +768,7 @@ func TestMkfifo(t *testing.T) { // TestMagicNames verifies that "magic" names are handled correctly // https://github.com/rfjakob/gocryptfs/issues/174 func TestMagicNames(t *testing.T) { - names := []string{"gocryptfs.longname.QhUr5d9FHerwEs--muUs6_80cy6JRp89c1otLwp92Cs", "gocryptfs.diriv"} + names := []string{"warmup1", "warmup2", "gocryptfs.longname.QhUr5d9FHerwEs--muUs6_80cy6JRp89c1otLwp92Cs", "gocryptfs.diriv"} for _, n := range names { t.Logf("Testing n=%q", n) p := test_helpers.DefaultPlainDir + "/" + n @@ -810,7 +810,7 @@ func TestMagicNames(t *testing.T) { syscall.Unlink(p) // Link target := test_helpers.DefaultPlainDir + "/linktarget" - err = ioutil.WriteFile(target, []byte("yyyyy"), 0200) + err = ioutil.WriteFile(target, []byte("yyyyy"), 0600) if err != nil { t.Fatal(err) } -- cgit v1.2.3