Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for requireIsolatedDaemons (0.32 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/CommandLineIntegrationSpec.groovy

        @Requires(IntegTestPreconditions.NotParallelExecutor)
        def "reasonable failure message when --max-workers=#value"() {
            given:
            executer.requireDaemon().requireIsolatedDaemons()  // otherwise exception gets thrown in testing infrastructure
    
            when:
            executer.withArgument("--max-workers=$value")
    
            then:
            fails "help"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 05:05:14 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/TaskSubclassingBinaryForwardCompatibilityCrossVersionSpec.groovy

        }
    
        def "task can use all methods declared by Task interface that AbstractTask specialises"() {
            given:
            prepareMethodUseTest(previous.version)
    
            expect:
            version previous withTasks 'assemble' inDirectory(file("producer")) run()
            version current requireDaemon() requireIsolatedDaemons() withTasks 't' run()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/TaskSubclassingBinaryBackwardsCompatibilityCrossVersionSpec.groovy

        }
    
        def "task can use all methods declared by Task interface that AbstractTask specialises"() {
            given:
            prepareMethodUseTest(current.version)
    
            expect:
            version current withTasks 'assemble' inDirectory(file("producer")) run()
            version previous requireDaemon() requireIsolatedDaemons() withTasks 't' run()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

        @Requires(
            value = IntegTestPreconditions.IsDaemonExecutor,
            reason = "Testing the daemons"
        )
        def "daemon with the same agent status is reused"() {
            given:
            executer.requireIsolatedDaemons()
            withDumpAgentStatusTask()
    
            when:
            withAgentApplied(useAgentOnFirstRun)
            succeeds()
    
            then:
            daemons.daemon.becomesIdle()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

            given:
            file('.myGradle').createDir()
            file('build.gradle') << "assert gradle.gradleUserHomeDir.name.endsWith('.myGradle')"
            toolingApi.requireIsolatedDaemons()
    
            when:
            withConnection {
                it.newBuild().withArguments('-g', '.myGradle').run()
            }
    
            then:
            noExceptionThrown()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/longlived/PersistentBuildProcessIntegrationTest.groovy

     */
    @Requires(IntegTestPreconditions.IsLongLivingProcess)
    class PersistentBuildProcessIntegrationTest extends AbstractIntegrationSpec {
    
        def setup() {
            executer.requireIsolatedDaemons()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleContextualExecuter.java

            if (executerType == Executer.embedded && !Charset.forName(defaultCharacterEncoding).equals(Charset.defaultCharset())) {
                // need to fork to apply the new default character encoding
                requireDaemon().requireIsolatedDaemons();
            }
            return super.withDefaultCharacterEncoding(defaultCharacterEncoding);
        }
    
        @Override
        public GradleExecuter withDefaultLocale(Locale defaultLocale) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 18:06:31 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonIntegrationSpec.groovy

    import org.gradle.test.fixtures.ConcurrentTestUtil
    
    abstract class DaemonIntegrationSpec extends AbstractIntegrationSpec {
        def setup() {
            executer.requireDaemon()
            executer.requireIsolatedDaemons()
        }
    
        void stopDaemonsNow() {
            result = executer.withArguments("--stop", "--info").run()
        }
    
        void buildSucceeds() {
            result = executer.withArguments("--info").run()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/BinDistributionIntegrationSpec.groovy

    package org.gradle
    
    import org.gradle.test.fixtures.file.TestFile
    
    class BinDistributionIntegrationSpec extends DistributionIntegrationSpec {
    
        def setup() {
            executer.requireOwnGradleUserHomeDir().requireIsolatedDaemons()
        }
    
        @Override
        String getDistributionLabel() {
            "bin"
        }
    
        @Override
        int getMaxDistributionSizeBytes() {
            return 135 * 1024 * 1024
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/internal/buildevents/BuildFailureIntegrationTest.groovy

    class BuildFailureIntegrationTest extends AbstractIntegrationSpec {
        def "still prints errors when exception misbehaves"() {
            // When running in-process, the NPE propagates out of the test fixtures
            executer.requireIsolatedDaemons()
            executer.requireDaemon()
    
            buildFile << """
    class BadException extends Exception {
       String getMessage() {
         throw new NullPointerException()
       }
    }
    
    throw new BadException()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top