- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 208 for emitError (0.36 sec)
-
src/runtime/lockrank_test.go
testenv.MustHaveGoRun(t) cmd := testenv.CleanCmdEnv(testenv.Command(t, testenv.GoToolPath(t), "run", "mklockrank.go")) want, err := cmd.Output() if err != 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 := os.ReadFile("lockrank.go") if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 20:57:33 UTC 2023 - 856 bytes - Viewed (0) -
src/internal/platform/zosarch_test.go
// cmd/dist requires GOROOT to be set explicitly in the environment. cmd.Env = append(cmd.Environ(), "GOROOT="+testenv.GOROOT(t)) out, err := cmd.Output() if err != nil { if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 { t.Logf("stderr:\n%s", ee.Stderr) } t.Fatalf("%v: %v", cmd, err) } type listEntry struct { GOOS, GOARCH string CgoSupported bool FirstClass bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 22 19:44:52 UTC 2023 - 2.9K 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) -
src/runtime/runtime-gdb_unix_test.go
} err = cmd.Wait() t.Logf("child output:\n%s", output.String()) if err == nil { t.Fatalf("Wait succeeded, want SIGABRT") } ee, ok := err.(*exec.ExitError) if !ok { t.Fatalf("Wait err got %T %v, want exec.ExitError", ee, ee) } ws, ok := ee.Sys().(syscall.WaitStatus) if !ok { t.Fatalf("Sys got %T %v, want syscall.WaitStatus", ee.Sys(), ee.Sys()) } if ws.Signal() != syscall.SIGABRT {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.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) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
def TFL_BroadcastableBinaryBuilder : OpBuilder<(ins "Value":$lhs, "Value":$rhs), [{ auto resultType = OpTrait::util::getBroadcastedType(lhs.getType(), rhs.getType()); if (!resultType) mlir::emitError($_state.location, "non-broadcastable operands"); $_state.addOperands({lhs, rhs}); $_state.types.push_back(resultType); }]>; def TFL_FusedBroadcastableBinaryBuilder :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
} } Status ImporterBase::EmitErrorWithLocationStr(const Node& node, const Status& error_status) { const mlir::Location location = GetLocation(node); mlir::emitError(location); return error_handler_.Combine(error_status); } mlir::Operation* ImporterBase::CreateOperation( const Node& node, llvm::StringRef node_type_name, const mlir::OperationState& result,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/exec.go
cmd := exec.Command(exe, os.Args[1:]...) cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr err := cmd.Run() if err != nil { if e, ok := err.(*exec.ExitError); ok && e.ProcessState != nil { if e.ProcessState.Exited() { os.Exit(e.ProcessState.ExitCode()) } base.Fatalf("exec %s: %s", gotoolchain, e.ProcessState) } base.Fatalf("exec %s: %s", exe, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 14:42:39 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/tool/tool.go
} if err != nil { // Only print about the exit status if the command // didn't even run (not an ExitError) or it didn't exit cleanly // or we're printing command lines too (-x mode). // Assume if command exited cleanly (even with non-zero status) // it printed any messages it wanted to print. if e, ok := err.(*exec.ExitError); !ok || !e.Exited() || cfg.BuildX { fmt.Fprintf(os.Stderr, "go tool %s: %s\n", toolName, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 18:02:11 UTC 2024 - 5.9K 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)