aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
authorDmitri Shuralyov <dmitshur@google.com>2022-06-01 17:42:39 +0000
committerDmitri Shuralyov <dmitshur@google.com>2022-06-01 17:42:39 +0000
commit4658e6e324a85b0076f66acdab77799ffa9ac7bb (patch)
treef3b4de12074d583057060fdf35d91b6591859644 /src/os/exec/exec_test.go
parent6b07de790c08967d0dbe3a36ec86f3d13e1cfcbd (diff)
parent26cdea3acca29db94541236f0037a20aa22ce2d7 (diff)
downloadgo-4658e6e324a85b0076f66acdab77799ffa9ac7bb.tar.gz
go-4658e6e324a85b0076f66acdab77799ffa9ac7bb.zip
[dev.boringcrypto.go1.17] all: merge go1.17.11 into dev.boringcrypto.go1.17
Change-Id: I563433b2d02a5abea610a1561139d0980d5c2102
Diffstat (limited to 'src/os/exec/exec_test.go')
-rw-r--r--src/os/exec/exec_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index d854e0de84..a951be718d 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -1156,3 +1156,11 @@ func TestChildCriticalEnv(t *testing.T) {
t.Error("no SYSTEMROOT found")
}
}
+
+func TestNoPath(t *testing.T) {
+ err := new(exec.Cmd).Start()
+ want := "exec: no command"
+ if err == nil || err.Error() != want {
+ t.Errorf("new(Cmd).Start() = %v, want %q", err, want)
+ }
+}