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
This commit is contained in:
parent
9e69334400
commit
d7db071528
@ -768,7 +768,7 @@ func TestMkfifo(t *testing.T) {
|
|||||||
// TestMagicNames verifies that "magic" names are handled correctly
|
// TestMagicNames verifies that "magic" names are handled correctly
|
||||||
// https://github.com/rfjakob/gocryptfs/issues/174
|
// https://github.com/rfjakob/gocryptfs/issues/174
|
||||||
func TestMagicNames(t *testing.T) {
|
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 {
|
for _, n := range names {
|
||||||
t.Logf("Testing n=%q", n)
|
t.Logf("Testing n=%q", n)
|
||||||
p := test_helpers.DefaultPlainDir + "/" + n
|
p := test_helpers.DefaultPlainDir + "/" + n
|
||||||
@ -810,7 +810,7 @@ func TestMagicNames(t *testing.T) {
|
|||||||
syscall.Unlink(p)
|
syscall.Unlink(p)
|
||||||
// Link
|
// Link
|
||||||
target := test_helpers.DefaultPlainDir + "/linktarget"
|
target := test_helpers.DefaultPlainDir + "/linktarget"
|
||||||
err = ioutil.WriteFile(target, []byte("yyyyy"), 0200)
|
err = ioutil.WriteFile(target, []byte("yyyyy"), 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user