From a3c17f8f817cba8bb1dc063a0e86a09aae7e84c7 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 8 Aug 2017 08:05:24 +0200 Subject: [PATCH] lib/model: Disable symlink attack test on Windows --- lib/model/requests_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/model/requests_test.go b/lib/model/requests_test.go index 03ab2ab9..d440b20f 100644 --- a/lib/model/requests_test.go +++ b/lib/model/requests_test.go @@ -206,6 +206,10 @@ func TestRequestCreateTmpSymlink(t *testing.T) { } func TestRequestVersioningSymlinkAttack(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("no symlink support on Windows") + } + // Sets up a folder with trashcan versioning and tries to use a // deleted symlink to escape