- Sort Score
- Result 10 results
- Languages All
Results 81 - 89 of 89 for emitError (0.46 sec)
-
src/cmd/cover/cover_test.go
coverProfile := filepath.Join(testdata, "profile.cov") cmd := testenv.Command(t, testcover(t), "-func", coverProfile) out, err := cmd.Output() if err != nil { if ee, ok := err.(*exec.ExitError); ok { t.Logf("%s", ee.Stderr) } t.Fatal(err) } if got, err := regexp.Match(".*total:.*100.0.*", out); err != nil || !got { t.Logf("%s", out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
return m.Run() } func goEnv(key string) string { out, err := exec.Command("go", "env", key).Output() if err != nil { log.Printf("go env %s failed:\n%s", key, err) log.Panicf("%s", err.(*exec.ExitError).Stderr) } return strings.TrimSpace(string(out)) } func cmdToRun(name string) string { return "./" + name + exeSuffix } func run(t *testing.T, extraEnv []string, args ...string) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/runtime/crash_test.go
cmd.Env = append(cmd.Env, "RUNTIME_TEST_SHORT=1") } out, err := cmd.CombinedOutput() if err == nil { t.Logf("%v (%v): ok", cmd, time.Since(start)) } else { if _, ok := err.(*exec.ExitError); ok { t.Logf("%v: %v", cmd, err) } else if errors.Is(err, exec.ErrWaitDelay) { t.Fatalf("%v: %v", cmd, err) } else { t.Fatalf("%v failed to start: %v", cmd, err) } } return string(out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
type CommandRunner interface { // RunInContainer synchronously executes the command in the container, and returns the output. // If the command completes with a non-0 exit code, a k8s.io/utils/exec.ExitError will be returned. RunInContainer(ctx context.Context, id ContainerID, cmd []string, timeout time.Duration) ([]byte, error) } // Pod is a group of containers. type Pod struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0) -
src/crypto/x509/name_constraints_test.go
t.Error("unexpectedly succeeded against OpenSSL") if debugOpenSSLFailure { return } } if err != nil { if _, ok := err.(*exec.ExitError); !ok { t.Errorf("OpenSSL failed to run: %s", err) } else if len(test.expectedError) == 0 { t.Errorf("OpenSSL unexpectedly failed: %v", output) if debugOpenSSLFailure { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 22:40:21 UTC 2024 - 45.2K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/git.go
return false, err } } _, err = Run(ctx, r.dir, "git", "merge-base", "--is-ancestor", "--", tag, rev) if err == nil { return true, nil } if ee, ok := err.(*RunError).Err.(*exec.ExitError); ok && ee.ExitCode() == 1 { return false, nil } return false, err } func (r *gitRepo) ReadZip(ctx context.Context, rev, subdir string, maxSize int64) (zip io.ReadCloser, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 22:10:38 UTC 2024 - 27.4K bytes - Viewed (0) -
src/internal/fuzz/worker.go
// theory). // // This condition is probably intended by the user, so suppress // the error. return nil } if exitErr, ok := err.(*exec.ExitError); ok && exitErr.ExitCode() == workerExitCode { // Worker exited with a code indicating F.Fuzz was not called correctly, // for example, F.Fail was called first.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 37.7K bytes - Viewed (0) -
src/cmd/link/link_test.go
t.Fatalf("build (linkmode=%s) failed: %v\n%s", mode, err, out) } cmd = testenv.Command(t, testenv.GoToolPath(t), "tool", "nm", exe) out, err = cmd.CombinedOutput() if err != nil && !errors.As(err, new(*exec.ExitError)) { // Error exit is fine as it may have no symbols. // On darwin we need to emit dynamic symbol references so it // actually has some symbols, and nm succeeds.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 20:26:02 UTC 2024 - 43.5K bytes - Viewed (0) -
src/cmd/go/internal/vcs/vcs.go
} out, err := cmd.Output() if err != nil { if verbose || cfg.BuildV { fmt.Fprintf(os.Stderr, "# cd %s; %s %s\n", dir, v.Cmd, strings.Join(args, " ")) if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 { os.Stderr.Write(ee.Stderr) } else { fmt.Fprintln(os.Stderr, err.Error()) } } } return out, err } // Ping pings to determine scheme to use.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:30:18 UTC 2024 - 46.2K bytes - Viewed (0)