aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-02-28 20:48:33 +0100
committerJakob Unterwurzacher2018-02-28 20:48:33 +0100
commit29496baa707e36d58bf97046a18b8ba0a4fc5bbc (patch)
tree45620013b80af342c05e7f37a6c3b4a3d1d1dfa9 /tests/matrix/matrix_test.go
parentc5243fc79e25cd589e78f47dafe0e8144885e6e4 (diff)
MacOS: skip TestUtimesNanoSymlink and TestUtimesNanoFd
These cannot work on MacOS.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index 2494ed6..c57215b 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -697,6 +697,10 @@ func TestUtimesNanoSymlink(t *testing.T) {
cmd.Stdout = os.Stdout
err = cmd.Run()
if err != nil {
+ if runtime.GOOS == "darwin" {
+ // MacOS "touch" does not support "--no-dereference"
+ t.Skip(err)
+ }
t.Error(err)
}
}
@@ -773,6 +777,9 @@ func TestUtimesNano(t *testing.T) {
// Set nanoseconds by fd
func TestUtimesNanoFd(t *testing.T) {
+ if runtime.GOOS == "darwin" {
+ t.Skipf("MacOS does not have /proc")
+ }
path := test_helpers.DefaultPlainDir + "/utimesnanofd"
f, err := os.Create(path)
if err != nil {