Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,023 for Parallel (0.14 sec)

  1. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

       * make it load its own version of FinalizableReferenceQueue. Then we need to interact with that
       * parallel version through reflection in order to exercise the parallel
       * FinalizableReferenceQueue, and then check that the parallel ClassLoader can be
       * garbage-collected after that.
       */
    
      public static class MyFinalizableWeakReference extends FinalizableWeakReference<Object> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/crypto/elliptic/elliptic_test.go

    		t.Run(test.name, func(t *testing.T) {
    			t.Parallel()
    			f(t, curve)
    		})
    	}
    }
    
    func TestOnCurve(t *testing.T) {
    	t.Parallel()
    	testAllCurves(t, func(t *testing.T, curve Curve) {
    		if !curve.IsOnCurve(curve.Params().Gx, curve.Params().Gy) {
    			t.Error("basepoint is not on the curve")
    		}
    	})
    }
    
    func TestOffCurve(t *testing.T) {
    	t.Parallel()
    	testAllCurves(t, func(t *testing.T, curve Curve) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. tests/integration/README.md

                // ...
            }
    }
    ```
    
    Under the hood, this relies on Go's `t.Parallel()` and will, therefore, have the same behavior.
    
    A parallel test will run in parallel with siblings that share the same parent test. The parent test function
    will exit before the parallel children are executed. It should be noted that if the parent test is prevented
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. src/runtime/arena_test.go

    		t.Errorf("expected zero waiting arena chunks, found %d", n)
    	}
    }
    
    func runSubTestUserArenaNew[S comparable](t *testing.T, value *S, parallel bool) {
    	t.Run(reflect.TypeOf(value).Elem().Name(), func(t *testing.T) {
    		if parallel {
    			t.Parallel()
    		}
    
    		// Allocate and write data, enough to exhaust the arena.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top