Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 260 for caught (0.26 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/FailsafePhasedActionResultListenerTest.groovy

        def "delegate to listener"() {
            when:
            failsafeListener.onResult(event)
    
            then:
            1 * delegateListener.onResult(event)
        }
    
        def "failure is caught"() {
            def failure = new RuntimeException()
            given:
            delegateListener.onResult(_) >> { throw failure }
    
            when:
            failsafeListener.onResult(event)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. testing/precondition-tester/README.md

    For example, a `RunsOnPDP11` precondition, which we won't satisfy anywhere as we don't run tests on such hardware, will always be ignored.
    
    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. staging/src/k8s.io/apiserver/pkg/server/signal.go

    var onlyOneSignalHandler = make(chan struct{})
    var shutdownHandler chan os.Signal
    
    // SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned
    // which is closed on one of these signals. If a second signal is caught, the program
    // is terminated with exit code 1.
    // Only one of SetupSignalContext and SetupSignalHandler should be called, and only can
    // be called once.
    func SetupSignalHandler() <-chan struct{} {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 06 14:30:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingSortedSet.java

       *
       * @since 7.0
       */
      @Override
      protected boolean standardContains(@CheckForNull Object object) {
        try {
          // any ClassCastExceptions and NullPointerExceptions are caught
          @SuppressWarnings({"unchecked", "nullness"})
          SortedSet<@Nullable Object> self = (SortedSet<@Nullable Object>) this;
          Object ceiling = self.tailSet(object).first();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/WithExternalRepository.groovy

                server.insertHandler(context)
                server.start()
            } catch (IllegalArgumentException ignored) {
                server = null // repository not found, probably running on coordinator. If not, error will be caught later
            }
        }
    
        void stopServer() {
            server?.stop()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/deadlock.go

    	runtime.Goexit()
    }
    
    func RecoverBeforePanicAfterGoexit() {
    	// 1. defer a function that recovers
    	// 2. defer a function that panics
    	// 3. call goexit
    	// Goexit runs the #2 defer. Its panic
    	// is caught by the #1 defer.  For Goexit, we explicitly
    	// resume execution in the Goexit loop, instead of resuming
    	// execution in the caller (which would make the Goexit disappear!)
    	defer func() {
    		r := recover()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_non_crash_signal.txt

    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    stdout 'fuzzing process terminated by unexpected signal; no crash will be recorded: signal: terminated'
    
    # FuzzKill sends itself a signal that cannot be caught by the worker process
    # and does not appear to be a crash.
    # We should not save a crasher.
    ! go test -fuzz=FuzzKill
    ! exists testdata
    ! stdout unreachable
    ! stderr unreachable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. misc/go_android_exec/exitcode_test.go

    func TestExitCodeFilter(t *testing.T) {
    	// Write text to the filter one character at a time.
    	var out strings.Builder
    	f, exitStr := newExitCodeFilter(&out)
    	// Embed a "fake" exit code in the middle to check that we don't get caught on it.
    	pre := "abc" + exitStr + "123def"
    	text := pre + exitStr + `1`
    	for i := 0; i < len(text); i++ {
    		_, err := f.Write([]byte{text[i]})
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 14:54:58 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

        @Override
        public void uncaughtException(Thread t, Throwable e) {
          try {
            logger
                .get()
                .log(
                    SEVERE,
                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
                    e);
          } catch (Throwable errorInLogging) { // sneaky checked exception
            // If logging fails, e.g. due to missing memory, at least try to log the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-fail-first-gen-first.go

    // batch in the following generation.
    //
    // This test captures this behavior by making both the first generation
    // and second generation bad. It requires that the issue in the first
    // generation, which is caught when actually ordering events, be reported
    // instead of the second one.
    
    package main
    
    import (
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top