From dc4f42508dc109d6e8d86ab279b8438bb341f112 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 6 Mar 2020 16:38:18 +0100 Subject: Skip test on Windows if privileges are insufficient --- ext/spl/tests/bug68825.phpt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ext/spl/tests/bug68825.phpt b/ext/spl/tests/bug68825.phpt index b1ed5fb60f..5eec04ea16 100644 --- a/ext/spl/tests/bug68825.phpt +++ b/ext/spl/tests/bug68825.phpt @@ -1,5 +1,16 @@ --TEST-- Bug #68825 (Exception in DirectoryIterator::getLinkTarget()) +--SKIPIF-- +&1', $out); + @unlink($fn); + if (strpos($ret, 'privilege')) { + die('skip. SeCreateSymbolicLinkPrivilege not enable for this user.'); + } +} +?> --FILE--