diff --git a/buildSrc/src/test/java/org/elasticsearch/gradle/EmptyDirTaskTests.java b/buildSrc/src/test/java/org/elasticsearch/gradle/EmptyDirTaskTests.java index 9cb49e8efd4..517bf3dfc99 100644 --- a/buildSrc/src/test/java/org/elasticsearch/gradle/EmptyDirTaskTests.java +++ b/buildSrc/src/test/java/org/elasticsearch/gradle/EmptyDirTaskTests.java @@ -21,6 +21,8 @@ package org.elasticsearch.gradle; import java.io.File; import java.io.IOException; +import com.carrotsearch.randomizedtesting.RandomizedTest; +import org.apache.tools.ant.taskdefs.condition.Os; import org.elasticsearch.gradle.test.GradleUnitTestCase; import org.gradle.api.Project; import org.gradle.testfixtures.ProjectBuilder; @@ -49,6 +51,8 @@ public class EmptyDirTaskTests extends GradleUnitTestCase { } public void testCreateEmptyDirNoPermissions() throws Exception { + RandomizedTest.assumeFalse("Functionality is Unix specific", Os.isFamily(Os.FAMILY_WINDOWS)); + Project project = ProjectBuilder.builder().build(); EmptyDirTask emptyDirTask = project.getTasks().create("emptyDirTask", EmptyDirTask.class); emptyDirTask.setDirMode(0000);