Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 242 for Failure (0.27 sec)

  1. src/internal/trace/reader.go

    	// (4) Organize batchCursors in a min-heap, ordered by the timestamp of the next event for each M.
    	// (5) Try to advance the next event for the M at the top of the min-heap.
    	//   (a) On success, select that M.
    	//   (b) On failure, sort the min-heap and try to advance other Ms. Select the first M that advances.
    	//   (c) If there's nothing left to advance, goto (1).
    	// (6) Select the latest event for the selected M and get it ready to be returned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/log/slog/json_handler.go

    // not errors embedded in structs, slices, maps or other data structures that
    // are processed by the [encoding/json] package.
    //
    // Second, an encoding failure does not cause Handle to return an error.
    // Instead, the error message is formatted as a string.
    //
    // Each call to Handle results in a single serialized call to io.Writer.Write.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:18:11 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. src/internal/trace/trace_test.go

    		// Run some extra validation.
    		if !t.Failed() && extra != nil {
    			extra(t, tb, errBuf.Bytes(), stress)
    		}
    
    		// Dump some more information on failure.
    		if t.Failed() && onBuilder {
    			// Dump directly to the test log on the builder, since this
    			// data is critical for debugging and this is the only way
    			// we can currently make sure it's retained.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. test/maplinear.go

    // tries is the initial number of iterations.
    func checkLinear(typ string, tries int, f func(n int)) {
    	// Depending on the machine and OS, this test might be too fast
    	// to measure with accurate enough granularity. On failure,
    	// make it run longer, hoping that the timing granularity
    	// is eventually sufficient.
    
    	timeF := func(n int) time.Duration {
    		t1 := time.Now()
    		f(n)
    		return time.Since(t1)
    	}
    
    	t0 := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/web/http.go

    				}
    				return nil, fmt.Errorf("insecure URL: %s", url.Redacted())
    			}
    		case "":
    			if security != Insecure {
    				panic("should have returned after HTTPS failure")
    			}
    		default:
    			if cfg.BuildX {
    				fmt.Fprintf(os.Stderr, "# get %s: unsupported\n", url.Redacted())
    			}
    			return nil, fmt.Errorf("unsupported scheme: %s", url.Redacted())
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. src/net/rpc/server_test.go

    	return 0, errors.New("fake write failure")
    }
    
    func TestClientWriteError(t *testing.T) {
    	w := &writeCrasher{done: make(chan bool)}
    	c := NewClient(w)
    	defer c.Close()
    
    	res := false
    	err := c.Call("foo", 1, &res)
    	if err == nil {
    		t.Fatal("expected error")
    	}
    	if err.Error() != "fake write failure" {
    		t.Error("unexpected value of error:", err)
    	}
    	w.done <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    // If we are running multiple test targets, print a final "FAIL"
    // in case a failure in an early package has already scrolled
    // off of the user's terminal.
    // (See https://golang.org/issue/30507#issuecomment-470593235.)
    //
    // In JSON mode, we need to maintain valid JSON output and
    // we assume that the test output is being parsed by a tool
    // anyway, so the failure will not be missed and would be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. src/debug/gosym/symtab.go

    	return 0, UnknownFileError(path)
    }
    
    /*
     * Errors
     */
    
    // UnknownFileError represents a failure to find the specific file in
    // the symbol table.
    type UnknownFileError string
    
    func (e UnknownFileError) Error() string { return "unknown file: " + string(e) }
    
    // UnknownLineError represents a failure to map a line to a program
    // counter, either because the line is beyond the bounds of the file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  9. src/syscall/exec_unix_test.go

    	}
    
    	if cpid != cpgrp {
    		t.Fatalf("Child's process group is not the child's process ID")
    	}
    
    	cmd.Stop()
    
    	// This call fails on darwin/arm64. The failure doesn't matter, though.
    	// This is just best effort.
    	syscall.Tcsetpgrp(ttyFD, fpgrp)
    }
    
    func TestForegroundSignal(t *testing.T) {
    	tty, err := os.OpenFile("/dev/tty", os.O_RDWR, 0)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/runtime/netpoll_solaris.go

    retry:
    	var n uint32 = 1
    	r := port_getn(portfd, &events[0], uint32(len(events)), &n, wait)
    	e := errno()
    	if r < 0 && e == _ETIME && n > 0 {
    		// As per port_getn(3C), an ETIME failure does not preclude the
    		// delivery of some number of events.  Treat a timeout failure
    		// with delivered events as a success.
    		r = 0
    	}
    	if r < 0 {
    		if e != _EINTR && e != _ETIME {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top