Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 216 for emitError (0.12 sec)

  1. src/os/exec/lp_windows_test.go

    						// cmd.exe disagrees. Probably the test case is wrong?
    						t.Fatalf("%v\n\tresolved to %s\n\twant %s", cmd, gotAbs, wantAbs)
    					}
    				} else if tt.wantErr == nil {
    					if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
    						t.Fatalf("%v: %v\n%s", cmd, err, ee.Stderr)
    					}
    					t.Fatalf("%v: %v", cmd, err)
    				}
    			}
    
    			got, err := exec.LookPath(tt.searchFor)
    			if filepath.IsAbs(got) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/doc/dirs.go

    // extra paths passed to it are included in the channel.
    func dirsInit(extra ...Dir) {
    	if buildCtx.GOROOT == "" {
    		stdout, err := exec.Command("go", "env", "GOROOT").Output()
    		if err != nil {
    			if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
    				log.Fatalf("failed to determine GOROOT: $GOROOT is not set and 'go env GOROOT' failed:\n%s", ee.Stderr)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 9K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/carchive_test.go

    func expectSignal(t *testing.T, err error, sig1, sig2 syscall.Signal) bool {
    	t.Helper()
    	if err == nil {
    		t.Error("test program succeeded unexpectedly")
    	} else if ee, ok := err.(*exec.ExitError); !ok {
    		t.Errorf("error (%v) has type %T; expected exec.ExitError", err, err)
    	} else if ws, ok := ee.Sys().(syscall.WaitStatus); !ok {
    		t.Errorf("error.Sys (%v) has type %T; expected syscall.WaitStatus", ee.Sys(), ee.Sys())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  6. misc/ios/go_ios_exec.go

    		err = runOnDevice(appdir)
    	} else {
    		err = runOnSimulator(appdir)
    	}
    	if err != nil {
    		// If the lldb driver completed with an exit code, use that.
    		if err, ok := err.(*exec.ExitError); ok {
    			if ws, ok := err.Sys().(interface{ ExitStatus() int }); ok {
    				return ws.ExitStatus(), nil
    			}
    		}
    		return 1, err
    	}
    	return 0, nil
    }
    
    func runOnSimulator(appdir string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
  7. api/go1.6.txt

    pkg net/url, method (*Error) Temporary() bool
    pkg net/url, method (*Error) Timeout() bool
    pkg net/url, method (InvalidHostError) Error() string
    pkg net/url, type InvalidHostError string
    pkg os/exec, type ExitError struct, Stderr []uint8
    pkg regexp, method (*Regexp) Copy() *Regexp
    pkg runtime/debug, func SetTraceback(string)
    pkg strconv, func AppendQuoteRuneToGraphic([]uint8, int32) []uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_server_journal.go

    		return
    	}
    	cmd := exec.CommandContext(ctx, cmdStr, args...)
    	cmd.Stdout = w
    	cmd.Stderr = w
    
    	if err := cmd.Run(); err != nil {
    		if _, ok := err.(*exec.ExitError); ok {
    			return
    		}
    		if previousBoot == 0 {
    			fmt.Fprintf(w, "\nerror: journal output not available\n")
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 18:56:28 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/plugin_test.go

    	goCmd(t, "build", "-o", "forkexec.exe", "./forkexec/main.go")
    
    	for i := 0; i < 100; i++ {
    		cmd := testenv.Command(t, "./forkexec.exe", "1")
    		err := cmd.Run()
    		if err != nil {
    			if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
    				t.Logf("stderr:\n%s", ee.Stderr)
    			}
    			t.Errorf("running command failed: %v", err)
    			break
    		}
    	}
    }
    
    func TestSymbolNameMangle(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/vet/vet_test.go

    	out, _ := cmd.CombinedOutput()
    	return string(out) == "true\n"
    }
    
    func errchk(c *exec.Cmd, files []string, t *testing.T) {
    	output, err := c.CombinedOutput()
    	if _, ok := err.(*exec.ExitError); !ok {
    		t.Logf("vet output:\n%s", output)
    		t.Fatal(err)
    	}
    	fullshort := make([]string, 0, len(files)*2)
    	for _, f := range files {
    		fullshort = append(fullshort, f, filepath.Base(f))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top