com php-src: improve skipif: ext/standard/tests/file/bug47517.phpt
| From: | Anatol Belski | Date: | Thu, 01 Dec 2016 12:25:28 +0000 |
| Subject: | com php-src: improve skipif: ext/standard/tests/file/bug47517.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96123@lists.php.net to get a copy of this message | ||
Commit: 8ecbb660d0317b9365b24fcf6f58c2d3dcbc2c7a
Author: Anatol Belski <ab@php.net> Thu, 1 Dec 2016 13:25:28 +0100
Parents: 54244ba5655fa09211979bfedbad03c6270345f8
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8ecbb660d0317b9365b24fcf6f58c2d3dcbc2c7a
Log:
improve skipif
Changed paths:
M ext/standard/tests/file/bug47517.phpt
Diff:
diff --git a/ext/standard/tests/file/bug47517.phpt b/ext/standard/tests/file/bug47517.phpt
index 97f387c..7d7bcd5 100644
--- a/ext/standard/tests/file/bug47517.phpt
+++ b/ext/standard/tests/file/bug47517.phpt
@@ -5,6 +5,10 @@ Bug #47517 test registry virtualization disabled
if (substr(PHP_OS, 0, 3) != 'WIN') {
die('skip only for Windows');
}
+exec('net session 2>&1', $out, $status);
+if ($status) {
+ die('skip test runs under an elevated user account');
+}
?>
--FILE--
<?php