- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for ExitError (0.11 sec)
-
src/internal/runtime/exithook/hooks.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.2K bytes - Viewed (0) -
src/os/exec/exec_test.go
// resulting error should be an exec.ExitError without additional wrapping. if _, ok := err.(*exec.ExitError); !ok { t.Errorf("Wait error = %v; want *exec.ExitError", err) } }) // If Cancel returns ErrProcessDone but the process is not actually done // (and has to be killed), Wait should report the usual SIGKILL ExitError, // not the error from Cancel.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
if err != nil { t.Errorf("failed to modify permissions after test: %v", err) } } if tc.exitError != nil && reflect.TypeOf(tc.exitError) != reflect.TypeOf(err) { t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(tc.exitError), reflect.TypeOf(err), err) } return } if tc.shouldFail { t.Errorf("test should fail, but no error occurred")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0) -
pkg/volume/csi/csi_mounter_test.go
} // Mounter.SetUp() err = csiMounter.SetUp(volume.MounterArgs{}) if tc.setupShouldFail { if err != nil { if tc.exitError != nil && reflect.TypeOf(tc.exitError) != reflect.TypeOf(err) { t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(tc.exitError), reflect.TypeOf(err), err) } t.Log(err) return } else { t.Error("test should fail, but no error occurred")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 50.1K bytes - Viewed (0) -
pkg/probe/exec/exec.go
e.SetStdout(writer) err := e.Start() if err == nil { err = e.Wait() } data := dataBuffer.Bytes() klog.V(4).Infof("Exec probe response: %q", string(data)) if err != nil { exit, ok := err.(exec.ExitError) if ok { if exit.ExitStatus() == 0 { return probe.Success, string(data), nil } return probe.Failure, string(data), nil } if errors.Is(err, remote.ErrCommandTimedOut) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 2.2K bytes - Viewed (0) -
src/os/exec/exec.go
// set it to nil to prevent awaitGoroutines from blocking on it. c.goroutineErr = nil } resultc <- ctxResult{err: err} } // An ExitError reports an unsuccessful exit by a command. type ExitError struct { *os.ProcessState // Stderr holds a subset of the standard error output from the // Cmd.Output method if standard error was not otherwise being // collected. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 41.4K bytes - Viewed (0) -
src/runtime/pprof/vminfo_darwin_test.go
testenv.MustHaveExecPath(t, "vmmap") cmd := testenv.Command(t, "vmmap", pid) out, cmdErr := cmd.Output() if cmdErr != nil { t.Logf("vmmap output: %s", out) if ee, ok := cmdErr.(*exec.ExitError); ok && len(ee.Stderr) > 0 { t.Logf("%v: %v\n%s", cmd, cmdErr, ee.Stderr) if testing.Short() && strings.Contains(string(ee.Stderr), "No process corpse slots currently available, waiting to get one") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 19:59:50 UTC 2024 - 5.5K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
cmd.Dir = build.Default.GOROOT cmd.Env = append(os.Environ(), "PWD="+cmd.Dir, "GOROOT="+build.Default.GOROOT) var output []byte output, err = cmd.Output() if err != nil { if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 { err = errors.New(string(ee.Stderr)) } return } exports := strings.Split(string(bytes.TrimSpace(output)), "\n") if len(exports) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
tools/istio-iptables/pkg/dependencies/implementation.go
} // transformToXTablesErrorMessage returns an updated error message with explicit xtables error hints, if applicable. func transformToXTablesErrorMessage(stderr string, err error) string { ee, ok := err.(*exec.ExitError) if !ok { // Not common, but can happen if file not found error, etc return err.Error() } exitcode := ee.ExitCode() if errtypeStr, ok := exittypeToString[XTablesExittype(exitcode)]; ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 07 19:54:50 UTC 2024 - 8.2K bytes - Viewed (0) -
src/testing/testing_test.go
cmd.Env = append(cmd.Environ(), "GO_WANT_HELPER_PROCESS=1") out, err := cmd.CombinedOutput() t.Logf("%v:\n%s", cmd, out) if _, ok := err.(*exec.ExitError); !ok { t.Fatal(err) } // Because the outer subtests (and TestRunningTests itself) are marked as // parallel, their test functions return (and are no longer “running”)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 19.3K bytes - Viewed (0)