summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-07-12 20:58:38 +0200
committerJakob Unterwurzacher2020-07-12 21:00:52 +0200
commitd7db071528cff2450fd766bb48d0303444f18bf5 (patch)
tree9754bee5301d8ec144ca0e604994847d0e7a4ed7 /tests
parent9e69334400f3de5b17792afb63098f94d12fe389 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/matrix/matrix_test.go4
1 files 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)
}