Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 128 for Failure (0.15 sec)

  1. src/internal/trace/internal/testgen/go122/trace.go

    	}
    
    	// Write generations.
    	for _, g := range t.gens {
    		g.writeEventsTo(tw)
    	}
    
    	// Expectation file contents.
    	expect := []byte("SUCCESS\n")
    	if t.bad {
    		expect = []byte(fmt.Sprintf("FAILURE %q\n", t.badMatch))
    	}
    
    	// Create the test file's contents.
    	return txtar.Format(&txtar.Archive{
    		Files: []txtar.File{
    			{Name: "expect", Data: expect},
    			{Name: "trace", Data: buf.Bytes()},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_server_test.go

    	testClientHello(t, serverConfig, clientHello)
    
    	// Now test that switching to an RSA key causes the expected error (and
    	// not an internal error about a signing failure).
    	serverConfig.Certificates = testConfig.Certificates
    	testClientHelloFailure(t, serverConfig, clientHello, "no cipher suite supported by both client and server")
    }
    
    func TestDontSelectRSAWithECDSAKey(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa.go

    		return boring.EncryptRSANoPadding(bkey, em)
    	}
    
    	return encrypt(pub, em)
    }
    
    // ErrDecryption represents a failure to decrypt a message.
    // It is deliberately vague to avoid adaptive attacks.
    var ErrDecryption = errors.New("crypto/rsa: decryption error")
    
    // ErrVerification represents a failure to verify a signature.
    // It is deliberately vague to avoid adaptive attacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/runtime/crash_test.go

    	if os.Getenv("GO_TEST_RUNTIME_PANIC") == "1" {
    		defer func() {
    			if r := recover(); r != nil {
    				// We expect to crash, so exit 0
    				// to indicate failure.
    				os.Exit(0)
    			}
    		}()
    		runtime.PanicForTesting(nil, 1)
    		// We expect to crash, so exit 0 to indicate failure.
    		os.Exit(0)
    	}
    	if os.Getenv("GO_TEST_RUNTIME_NPE_READMEMSTATS") == "1" {
    		runtime.ReadMemStats(nil)
    		os.Exit(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. src/cmd/dist/buildtool.go

    	// We use a subdirectory of $GOROOT/pkg because that's the
    	// space within $GOROOT where we store all generated objects.
    	// We could use a temporary directory outside $GOROOT instead,
    	// but it is easier to debug on failure if the files are in a known location.
    	workspace := pathf("%s/pkg/bootstrap", goroot)
    	xremoveall(workspace)
    	xatexit(func() { xremoveall(workspace) })
    	base := pathf("%s/src/bootstrap", workspace)
    	xmkdirall(base)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/infer.go

    			}
    		}
    		smap := makeSubstMap(tparams, targs)
    		// TODO(gri): pass a poser here, rather than arg.Pos().
    		inferred := check.subst(arg.Pos(), tpar, smap, nil, check.context())
    		// CannotInferTypeArgs indicates a failure of inference, though the actual
    		// error may be better attributed to a user-provided type argument (hence
    		// InvalidTypeArg). We can't differentiate these cases, so fall back on
    		// the more general CannotInferTypeArgs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  7. src/go/types/infer.go

    			}
    		}
    		smap := makeSubstMap(tparams, targs)
    		// TODO(gri): pass a poser here, rather than arg.Pos().
    		inferred := check.subst(arg.Pos(), tpar, smap, nil, check.context())
    		// CannotInferTypeArgs indicates a failure of inference, though the actual
    		// error may be better attributed to a user-provided type argument (hence
    		// InvalidTypeArg). We can't differentiate these cases, so fall back on
    		// the more general CannotInferTypeArgs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_test.go

    // implementation will always generate fresh random numbers, large parts of the
    // reference connection will always change.
    
    var (
    	update       = flag.Bool("update", false, "update golden files on failure")
    	fast         = flag.Bool("fast", false, "impose a quick, possibly flaky timeout on recorded tests")
    	keyFile      = flag.String("keylog", "", "destination file for KeyLogWriter")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/nettest/conntest.go

    	t.Helper()
    	if nerr, ok := err.(net.Error); ok {
    		if !nerr.Timeout() {
    			if runtime.GOOS == "windows" && runtime.GOARCH == "arm64" && t.Name() == "TestTestConn/TCP/RacyRead" {
    				t.Logf("ignoring known failure mode on windows/arm64; see https://go.dev/issue/52893")
    			} else {
    				t.Errorf("got error: %v, want err.Timeout() = true", nerr)
    			}
    		}
    	} else {
    		t.Errorf("got %T: %v, want net.Error", err, err)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/net/net_windows_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if bytes.Contains(out, []byte("The following helper DLL cannot be loaded")) {
    		t.Skipf("powershell failure:\n%s", err)
    	}
    	if !bytes.Contains(out, []byte("The following commands are available:")) {
    		t.Skipf("powershell does not speak English:\n%s", out)
    	}
    }
    
    func netshInterfaceIPShowInterface(ipver string, ifaces map[string]bool) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top