From d6dab13eb5e84b2dbe3fda545edffaf56ebee4ec Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 22 Feb 2018 11:12:44 +0100 Subject: [PATCH] Symlinks are not the same on win, and we can not create them programitically without adming privileges --- src/vs/base/test/node/extfs/extfs.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vs/base/test/node/extfs/extfs.test.ts b/src/vs/base/test/node/extfs/extfs.test.ts index 17d020743e5..bb01309a025 100644 --- a/src/vs/base/test/node/extfs/extfs.test.ts +++ b/src/vs/base/test/node/extfs/extfs.test.ts @@ -16,7 +16,7 @@ import strings = require('vs/base/common/strings'); import extfs = require('vs/base/node/extfs'); import { onError } from 'vs/base/test/common/utils'; import { Readable } from 'stream'; -import { isLinux } from 'vs/base/common/platform'; +import { isLinux, isWindows } from 'vs/base/common/platform'; const ignore = () => { }; @@ -75,6 +75,11 @@ suite('Extfs', () => { }); test('stat link', function (done: () => void) { + if (isWindows) { + // Symlinks are not the same on win, and we can not create them programitically without admin privileges + return done(); + } + const id1 = uuid.generateUuid(); const parentDir = path.join(os.tmpdir(), 'vsctests', id1); const directory = path.join(parentDir, 'extfs', id1); -- GitLab