Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for Failure (0.11 sec)

  1. src/internal/trace/testtrace/expectation.go

    func (e *Expectation) Check(err error) error {
    	if !e.failure && err != nil {
    		return fmt.Errorf("unexpected error while reading the trace: %v", err)
    	}
    	if e.failure && err == nil {
    		return fmt.Errorf("expected error while reading the trace: want something matching %q, got none", e.errorMatcher)
    	}
    	if e.failure && err != nil && !e.errorMatcher.MatchString(err.Error()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. test/fixedbugs/issue15002.go

    		if r == nil {
    			panic("no fault or bounds check failure happened")
    		}
    		s := fmt.Sprintf("%s", r)
    		if s != "runtime error: index out of range [1] with length 1" {
    			panic("bad panic: " + s)
    		}
    	}()
    	return uint16(x[i]) | uint16(x[i+1])<<8
    }
    
    func test32(x []byte) uint32 {
    	defer func() {
    		r := recover()
    		if r == nil {
    			panic("no fault or bounds check failure happened")
    		}
    		s := fmt.Sprintf("%s", r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. src/internal/bytealg/indexbyte_amd64.s

    small:
    	TESTQ	BX, BX
    	JEQ	failure
    
    	// Check if we'll load across a page boundary.
    	LEAQ	16(SI), AX
    	TESTW	$0xff0, AX
    	JEQ	endofpage
    
    	MOVOU	(SI), X1 // Load data
    	PCMPEQB	X0, X1	// Compare target byte with each byte in data.
    	PMOVMSKB X1, DX	// Move result bits to integer register.
    	BSFL	DX, DX	// Find first set bit.
    	JZ	failure	// No set bit, failure.
    	CMPL	DX, BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 19:06:01 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_err_deadlock.txt

    # This is a somewhat inexact check, but since we don't prefix the error with anything
    # and as the error suffix is platform dependent, this is the best we can do. In the
    # deadlock failure case, the test will just deadlock and timeout anyway, so it should
    # be clear that that failure mode is different.
    stdout 'open'
    
    -- go.mod --
    module test
    
    -- cov_test.go --
    package dead
    
    import (
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 19:51:23 UTC 2023
    - 999 bytes
    - Viewed (0)
  5. src/crypto/tls/alert.go

    	alertDecryptionFailed:             "decryption failed",
    	alertRecordOverflow:               "record overflow",
    	alertDecompressionFailure:         "decompression failure",
    	alertHandshakeFailure:             "handshake failure",
    	alertBadCertificate:               "bad certificate",
    	alertUnsupportedCertificate:       "unsupported certificate",
    	alertCertificateRevoked:           "revoked certificate",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/internal/syscall/unix/fallocate_freebsd_64bit.go

    //go:build freebsd && (amd64 || arm64 || riscv64)
    
    package unix
    
    import "syscall"
    
    func PosixFallocate(fd int, off int64, size int64) error {
    	// If successful, posix_fallocate() returns zero. It returns an error on failure, without
    	// setting errno. See https://man.freebsd.org/cgi/man.cgi?query=posix_fallocate&sektion=2&n=1
    	r1, _, _ := syscall.Syscall(posixFallocateTrap, uintptr(fd), uintptr(off), uintptr(size))
    	if r1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 14:17:36 UTC 2023
    - 637 bytes
    - Viewed (0)
  7. src/internal/trace/testdata/tests/go122-create-syscall-with-p.test

    -- expect --
    FAILURE ".*expected a proc but didn't have one.*"
    -- trace --
    Trace Go1.22
    EventBatch gen=1 m=0 time=0 size=34
    GoCreateSyscall dt=1 new_g=4
    ProcStatus dt=1 p=0 pstatus=2
    ProcStart dt=1 p=0 p_seq=1
    GoSyscallEndBlocked dt=1
    GoStart dt=1 g=4 g_seq=1
    GoSyscallBegin dt=1 p_seq=2 stack=0
    GoDestroySyscall dt=1
    GoCreateSyscall dt=1 new_g=4
    GoSyscallEnd dt=1
    GoSyscallBegin dt=1 p_seq=3 stack=0
    GoDestroySyscall dt=1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 624 bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_mmap.c

    	void *p;
    
    	_cgo_tsan_acquire();
    	p = mmap(addr, length, prot, flags, fd, offset);
    	_cgo_tsan_release();
    	if (p == MAP_FAILED) {
    		/* This is what the Go code expects on failure.  */
    		return (uintptr_t)errno;
    	}
    	return (uintptr_t)p;
    }
    
    void
    x_cgo_munmap(void *addr, uintptr_t length) {
    	int r;
    
    	_cgo_tsan_acquire();
    	r = munmap(addr, length);
    	_cgo_tsan_release();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 916 bytes
    - Viewed (0)
  9. src/internal/trace/testdata/tests/go122-fail-first-gen-first.test

    -- expect --
    FAILURE "expected a proc but didn't have one"
    -- trace --
    Trace Go1.22
    EventBatch gen=1 m=0 time=0 size=5
    Frequency freq=15625000
    EventBatch gen=1 m=0 time=0 size=5
    GoCreate dt=0 new_g=1 new_stack=0 stack=0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 256 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/doc.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package lostcancel defines an Analyzer that checks for failure to
    // call a context cancellation function.
    //
    // # Analyzer lostcancel
    //
    // lostcancel: check cancel func returned by context.WithCancel is called
    //
    // The cancellation function returned by context.WithCancel, WithTimeout,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 632 bytes
    - Viewed (0)
Back to top