Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 242 for Failure (0.13 sec)

  1. src/crypto/tls/bogo_shim_test.go

    	// NOTE: we don't immediately check the error, because the failure could be either because
    	// the runner failed for some unexpected reason, or because a test case failed, and we
    	// cannot easily differentiate these cases. We check if the JSON results file was written,
    	// which should only happen if the failure was because of a test failure, and use that
    	// to determine the failure mode.
    
    	resultsJSON, jsonErr := os.ReadFile(resultsFile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/internal/saferio/io.go

    func ReadData(r io.Reader, n uint64) ([]byte, error) {
    	if int64(n) < 0 || n != uint64(int(n)) {
    		// n is too large to fit in int, so we can't allocate
    		// a buffer large enough. Treat this as a read failure.
    		return nil, io.ErrUnexpectedEOF
    	}
    
    	if n < chunk {
    		buf := make([]byte, n)
    		_, err := io.ReadFull(r, buf)
    		if err != nil {
    			return nil, err
    		}
    		return buf, nil
    	}
    
    	var buf []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/crypto/ecdsa/ecdsa_s390x.s

    	KDSA R0, R4      // compute digital signature authentication
    	BVS  loop        // branch back if interrupted
    	BGT  retry       // signing unsuccessful, but retry with new CSPRN
    	BLT  error       // condition code of 1 indicates a failure
    
    success:
    	MOVD $0, errn+16(FP) // return 0 - sign/verify was successful
    	RET
    
    error:
    	MOVD $1, errn+16(FP) // return 1 - sign/verify failed
    	RET
    
    retry:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 891 bytes
    - Viewed (0)
  4. src/runtime/sys_openbsd_riscv64.s

    	CALL	libc_munmap(SB)
    	MOV	$-1, X5
    	BNE	X5, X10, 3(PC)
    	MOV	$0, X5			// crash on failure
    	MOV	X5, (X5)
    	RET
    
    TEXT runtime·madvise_trampoline(SB),NOSPLIT,$8
    	MOV	8(X10), X11		// arg 2 - len
    	MOVW	16(X10), X12		// arg 3 - advice
    	MOV	0(X10), X10		// arg 1 - addr
    	CALL	libc_madvise(SB)
    	// ignore failure - maybe pages are locked
    	RET
    
    TEXT runtime·open_trampoline(SB),NOSPLIT,$8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  5. src/runtime/sys_openbsd_ppc64.s

    	CALL	libc_munmap(SB)
    	CMP	R3, $-1
    	BNE	3(PC)
    	MOVD	$0, R3			// crash on failure
    	MOVD	R3, (R3)
    	RET
    
    TEXT runtime·madvise_trampoline(SB),NOSPLIT,$32
    	MOVD	8(R3), R4		// arg 2 - len
    	MOVW	16(R3), R5		// arg 3 - advice
    	MOVD	0(R3), R3		// arg 1 - addr
    	CALL	libc_madvise(SB)
    	// ignore failure - maybe pages are locked
    	RET
    
    TEXT runtime·open_trampoline(SB),NOSPLIT,$32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    	size    int64
    	cur     int64
    	mu      sync.Mutex
    	waiters list.List
    }
    
    // Acquire acquires the semaphore with a weight of n, blocking until resources
    // are available or ctx is done. On success, returns nil. On failure, returns
    // ctx.Err() and leaves the semaphore unchanged.
    func (s *Weighted) Acquire(ctx context.Context, n int64) error {
    	done := ctx.Done()
    
    	s.mu.Lock()
    	select {
    	case <-done:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/go/scriptreadme_test.go

    	-- $WORK/d2/src/p2/p2.go --
    	package p2
    	func F() {}
    	-- $WORK/p2x.go --
    	package p2
    	func F() {}
    	func G() {}
    
    The bug is that the final phase installs p11 instead of p1. The test failure looks like:
    
    	$ go test -run=Script
    	--- FAIL: TestScript (3.75s)
    	    --- FAIL: TestScript/install_rebuild_gopath (0.16s)
    	        script_test.go:223:
    	            # GOPATH with p1 in d2, p2 in d2 (0.000s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. src/runtime/signal_windows_test.go

    	if err == nil {
    		t.Fatal("error expected")
    	}
    	if _, ok := err.(*exec.ExitError); ok && len(out) > 0 {
    		if !bytes.Contains(out, []byte("Exception 0x2a")) {
    			t.Fatalf("unexpected failure while running executable: %s\n%s", err, out)
    		}
    	} else {
    		t.Fatalf("unexpected error while running executable: %s\n%s", err, out)
    	}
    	// run test program in a new thread
    	cmd = exec.Command(exe, "thread")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue18146.go

    			t.Error(err)
    			return
    		}
    		cmds = append(cmds, cmd)
    	}
    
    	failures := 0
    	for _, cmd := range cmds {
    		err := cmd.Wait()
    		if err == nil {
    			continue
    		}
    
    		t.Errorf("syscall.Exec failed: %v\n%s", err, cmd.Stdout)
    		failures++
    	}
    
    	if failures > 0 {
    		t.Logf("Failed %v of %v attempts.", failures, len(cmds))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. test/finprofiled.go

    			runtime.SetFinalizer(x, func(p *int32) {
    				hold = append(hold, p)
    			})
    		}
    	}
    	// Finalize as much as possible.
    	// Note: the sleep only increases probability of bug detection,
    	// it cannot lead to false failure.
    	for i := 0; i < 5; i++ {
    		runtime.GC()
    		time.Sleep(10 * time.Millisecond)
    	}
    	// Read memory profile.
    	var prof []runtime.MemProfileRecord
    	for {
    		if n, ok := runtime.MemProfile(prof, false); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 05:48:00 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top