aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-03-05 21:32:07 +0100
committerJakob Unterwurzacher2018-03-05 21:36:16 +0100
commitaa65091bb9437ad66ba5d09f9acd4c72c66bde87 (patch)
treeec6fd50940db83f788c644093faa1ee8da7ef78e /tests/matrix/matrix_test.go
parentb820fa691ddae7b3111de823c8a45666f9e59c70 (diff)
macos: skip TestUtimesNanoSymlink early
Gets rid of the touch error message upon running the tests.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index c57215b..d0ad0d5 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -685,6 +685,9 @@ func TestLchown(t *testing.T) {
// Set nanoseconds by path, symlink
func TestUtimesNanoSymlink(t *testing.T) {
+ if runtime.GOOS == "darwin" {
+ t.Skipf("MacOS \"touch\" does not support \"--no-dereference\"")
+ }
path := test_helpers.DefaultPlainDir + "/utimesnano_symlink"
err := os.Symlink("/some/nonexisting/file", path)
if err != nil {
@@ -697,10 +700,6 @@ 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)
}
}