summaryrefslogtreecommitdiff
path: root/vendor/github.com/otiai10/copy/test_setup_x.go
blob: 4c35b144b10c64a53e4cb4c14eacc47bdb5c9b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//go:build windows || plan9 || netbsd || aix || illumos || solaris || js
// +build windows plan9 netbsd aix illumos solaris js

package copy

import (
	"os"
	"testing"
)

func setup(m *testing.M) {
	os.RemoveAll("test/data.copy")
	os.MkdirAll("test/data.copy", os.ModePerm)
	os.Symlink("test/data/case01", "test/data/case03/case01")
	os.Chmod("test/data/case07/dir_0555", 0555)
	os.Chmod("test/data/case07/file_0444", 0444)
}