- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 509 for tmpDirs (0.25 sec)
-
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy
expect: fs.getUnixMode(tmpDir.createFile("someFile")) == FileSystem.DEFAULT_FILE_MODE fs.getUnixMode(tmpDir.createDir("someDir")) == FileSystem.DEFAULT_DIR_MODE } @Requires(UnitTestPreconditions.NoFilePermissions) def "setting unix permissions does nothing on unsupported platforms"() { expect: fs.chmod(tmpDir.createFile("someFile"), 0644) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:06:40 UTC 2023 - 5.8K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/process/internal/DefaultExecActionFactoryTest.groovy
import org.junit.Rule class DefaultExecActionFactoryTest extends ConcurrentSpec { @Rule public final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def resolver = TestFiles.resolver(tmpDir.testDirectory) def fileCollectionFactory = TestFiles.fileCollectionFactory(tmpDir.testDirectory) def instantiator = TestUtil.instantiatorFactory() def factory = DefaultExecActionFactory
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 15 17:11:21 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/documentation/docs-asciidoctor-extensions-base/src/test/groovy/org/gradle/docs/asciidoctor/SampleIncludeProcessorTest.groovy
import org.junit.rules.TemporaryFolder import spock.lang.Specification class SampleIncludeProcessorTest extends Specification { @Rule TemporaryFolder tmpDir = new TemporaryFolder() Asciidoctor asciidoctor def setup() { tmpDir.newFolder("src", "samples") asciidoctor = Asciidoctor.Factory.create() JavaExtensionRegistry extensionRegistry = asciidoctor.javaExtensionRegistry()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 7.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy
import org.gradle.util.Matchers import org.gradle.util.SetSystemProperties import org.junit.Rule import spock.lang.Specification class JvmTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) @Rule SetSystemProperties sysProp = new SetSystemProperties() OperatingSystem os = Mock() { getExecutableName(_) >> { String name ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 00:09:57 UTC 2024 - 15.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/mvnsettings/DefaultLocalMavenRepositoryLocatorTest.groovy
@Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) SimpleMavenFileLocations locations DefaultLocalMavenRepositoryLocator locator def system = Mock(DefaultLocalMavenRepositoryLocator.SystemPropertyAccess) def mavenFileLocations = Mock(MavenFileLocations) File repo1 = tmpDir.file("repo1") File repo2 = tmpDir.file("repo2")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 8.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy
@Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) @Requires(UnitTestPreconditions.Symlinks) def "normalizes absolute path which points to an absolute link"() { def target = createFile(new File(tmpDir.testDirectory, 'target.txt')) def file = new File(tmpDir.testDirectory, 'a/other.txt') createLink(file, target)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 20 11:15:22 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/volume/volume_linux_test.go
t.Fatalf("error reading permission stats for tmpdir: %s", tmpDir) } var expectedGid int64 = int64(stat.Gid) err = test.setupFunc(tmpDir) if err != nil { t.Errorf("for %s error running setup with: %v", test.description, err) } mounter := &localFakeMounter{path: "FAKE_DIR_DOESNT_EXIST"} // SetVolumeOwnership() must rely on tmpDir err = SetVolumeOwnership(mounter, tmpDir, &expectedGid, test.fsGroupChangePolicy, nil)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 12.1K bytes - Viewed (0) -
platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/tools/ToolSearchPathTest.groovy
result.tool == file } def "ignores files that do not look like cygwin symlinks"() { def candidate1 = tmpDir.createFile("dir1/cc") def candidate2 = tmpDir.createFile("dir2/cc") def candidate3 = tmpDir.createFile("dir3/cc") def file = tmpDir.createFile("dir4/cc.bin") given: candidate1.setText("!<symlink>", "utf-8")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.6K bytes - Viewed (0) -
platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy
import spock.lang.Specification class LocalFileStandInExternalResourceTest extends Specification { @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def "can apply ContentAndMetadataAction to file contents"() { def file = tmpDir.createFile("content") file.text = "1234" expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 14K bytes - Viewed (0) -
pkg/volume/local/local_linux_test.go
"k8s.io/apimachinery/pkg/types" ) func TestFSGroupMount(t *testing.T) { tmpDir, plug := getPlugin(t) defer os.RemoveAll(tmpDir) info, err := os.Stat(tmpDir) if err != nil { t.Errorf("Error getting stats for %s (%v)", tmpDir, err) } s := info.Sys().(*syscall.Stat_t) if s == nil { t.Fatalf("Error getting stats for %s (%v)", tmpDir, err) } fsGroup1 := int64(s.Gid) fsGroup2 := fsGroup1 + 1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 2K bytes - Viewed (0)