Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 436 for Parallel (0.13 sec)

  1. src/os/exec/exec_windows_test.go

    	_, err := fmt.Fprint(pipe, args[1])
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "writing to pipe failed: %v\n", err)
    		os.Exit(1)
    	}
    	pipe.Close()
    }
    
    func TestPipePassing(t *testing.T) {
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Error(err)
    	}
    	const marker = "arrakis, dune, desert planet"
    	childProc := helperCommand(t, "pipehandle", strconv.FormatUint(uint64(w.Fd()), 16), marker)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 23:07:55 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerArgumentsIntegrationTest.groovy

        }
    
        def "can enable parallel execution via --parallel property"() {
            given:
            buildScript """
                task writeValue {
                    doLast {
                        file("out.txt").text = gradle.startParameter.parallelProjectExecutionEnabled
                    }
                }
            """
    
            when:
            runner("writeValue", "--parallel")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_match_no_subtests_parallel.txt

    # Matches no subtests, parallel
    go test -run Test/Sub/ThisWillNotMatch standalone_parallel_sub_test.go
    stdout '^ok.*\[no tests to run\]'
    
    -- standalone_parallel_sub_test.go --
    package standalone_parallel_sub_test
    
    import "testing"
    
    func Test(t *testing.T) {
    	ch := make(chan bool, 1)
    	t.Run("Sub", func(t *testing.T) {
    		t.Parallel()
    		<-ch
    		t.Run("Nested", func(t *testing.T) {})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:48:08 UTC 2020
    - 472 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/reproduciblebuilds_test.go

    		"issue20272.go",
    		"issue27013.go",
    		"issue30202.go",
    	}
    
    	testenv.MustHaveGoBuild(t)
    	iters := 10
    	if testing.Short() {
    		iters = 4
    	}
    	t.Parallel()
    	for _, test := range tests {
    		test := test
    		t.Run(test, func(t *testing.T) {
    			t.Parallel()
    			var want []byte
    			tmp, err := os.CreateTemp("", "")
    			if err != nil {
    				t.Fatalf("temp file creation failed: %v", err)
    			}
    			defer os.Remove(tmp.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_match_only_subtests_parallel.txt

    # Matches only subtests, parallel
    go test -run Test/Sub/Nested standalone_parallel_sub_test.go
    ! stdout '^ok.*\[no tests to run\]'
    ! stderr '^ok.*\[no tests to run\]'
    stdout '^ok'
    
    -- standalone_parallel_sub_test.go --
    package standalone_parallel_sub_test
    
    import "testing"
    
    func Test(t *testing.T) {
    	ch := make(chan bool, 1)
    	t.Run("Sub", func(t *testing.T) {
    		t.Parallel()
    		<-ch
    		t.Run("Nested", func(t *testing.T) {})
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 20:48:08 UTC 2020
    - 515 bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/process/internal/CancellationBuildOperationIntegrationTest.groovy

                            ${server.callFromBuild("parallel-task-done")}
                        }
                    }
                """
            }
            def numWorkers = (parallelTaskCount / 2) + 2 as int
    
            when:
            server.expectConcurrent(numWorkers, ["parallel-task-done"] * parallelTaskCount + ["before-interrupt"] as String[])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:46:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_main_panic.txt

    func setup()    { println("setup()") }
    func teardown() { println("teardown()") }
    func TestA(t *testing.T) {
    	t.Run("1", func(t *testing.T) {
    		t.Run("1", func(t *testing.T) {
    			t.Parallel()
    			panic("A/1/1 panics")
    		})
    		t.Run("2", func(t *testing.T) {
    			t.Parallel()
    			println("A/1/2 is ok")
    		})
    	})
    }
    
    func TestMain(m *testing.M) {
    	setup()
    	defer teardown()
    	m.Run()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 19 21:07:59 UTC 2020
    - 603 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_json_interleaved.txt

    # Regression test for https://golang.org/issue/40657: output from the main test
    # function should be attributed correctly even if interleaved with the PAUSE
    # line for a new parallel subtest.
    
    [short] skip
    
    go test -json
    stdout '"Test":"TestWeirdTiming","Output":"[^"]* logging to outer again\\n"'
    
    -- go.mod --
    module example.com
    go 1.15
    -- main_test.go --
    package main
    
    import (
    	"testing"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 18 17:44:20 UTC 2020
    - 581 bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/assembler/AssemblyLanguageParallelIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can execute assembler tasks in parallel"() {
            given:
            withComponentForApp()
            createTaskThatRunsInParallelUsingCustomToolchainWith("assembleMainExecutableMainAsm")
            buildFile << """
                // prevent assembly and c compile tasks from running in parallel
                // this is because we don't want the c compile tasks to accidentally use
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/nativeplatform/NativeCleanBuildPerformanceTest.groovy

        @RunFor([
            @Scenario(type = PER_DAY, operatingSystems = [LINUX], testProjects =  ['manyProjectsNative'])
        ])
        def "clean assemble (native, parallel)"() {
            given:
            runner.tasksToRun = ["assemble"]
            runner.cleanTasks = ["clean"]
            runner.args = ["--parallel", "--max-workers=12"]
    
            when:
            def result = runner.run()
    
            then:
            result.assertCurrentVersionHasNotRegressed()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top