Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestStop (0.26 sec)

  1. src/os/signal/signal_plan9_test.go

    	// into subsequent TestSignal() causing failure.
    	// Sleep for a while to reduce the possibility of the failure.
    	time.Sleep(10 * time.Millisecond)
    }
    
    // Test that Stop cancels the channel's registrations.
    func TestStop(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	sigs := []string{
    		"alarm",
    		"hangup",
    	}
    
    	for _, sig := range sigs {
    		// Send the signal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StopwatchTest.java

        stopwatch.start();
        try {
          stopwatch.start();
          fail();
        } catch (IllegalStateException expected) {
        }
        assertTrue(stopwatch.isRunning());
      }
    
      public void testStop() {
        stopwatch.start();
        assertSame(stopwatch, stopwatch.stop());
        assertFalse(stopwatch.isRunning());
      }
    
      public void testStop_new() {
        try {
          stopwatch.stop();
          fail();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/os/signal/signal_test.go

    		}
    	}
    }
    
    var (
    	sendUncaughtSighup = flag.Int("send_uncaught_sighup", 0, "send uncaught SIGHUP during TestStop")
    	dieFromSighup      = flag.Bool("die_from_sighup", false, "wait to die from uncaught SIGHUP")
    )
    
    // Test that Stop cancels the channel's registrations.
    func TestStop(t *testing.T) {
    	sigs := []syscall.Signal{
    		syscall.SIGWINCH,
    		syscall.SIGHUP,
    		syscall.SIGUSR1,
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:34:56 UTC 2023
    - 27.2K bytes
    - Viewed (0)
Back to top