Skip to content
Snippets Groups Projects
Commit 837e7e28 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Mark test as skipped of required POSIX-function is not available

parent cc98f830
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,10 @@ class SystemTest extends TestCase
*/
public function testGetTempDirBadOwner()
{
if (!function_exists('posix_getuid')) {
static::markTestSkipped('POSIX-functions not available; skipping!');
}
$bad_uid = posix_getuid() + 1;
$tempdir = $this->root_directory . DIRECTORY_SEPARATOR . self::DEFAULTTEMPDIR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment