From a32fba92168b5bb80224d6b5f8f90b776fc7ec4c Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Sun, 10 Oct 2021 16:37:04 -0400 Subject: [PATCH 1/2] Update Travis CI --- .travis.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 746a34d..60c86f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,9 @@ os: - windows go: - - "1.14" - "1.15" - "1.16" + - "1.17" before_install: - go get github.com/mattn/goveralls diff --git a/README.md b/README.md index 3b4dec0..a735203 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,8 @@ In addition to 100% test coverage and no race conditions, this package is active [goreport-img]: https://goreportcard.com/badge/github.com/go-cmd/cmd [goreport-url]: https://goreportcard.com/report/github.com/go-cmd/cmd -[build-img]: https://travis-ci.org/go-cmd/cmd.svg?branch=master -[build-url]: https://travis-ci.org/go-cmd/cmd +[build-img]: https://app.travis-ci.com/go-cmd/cmd.svg?branch=master +[build-url]: https://app.travis-ci.com/go-cmd/cmd [cover-img]: https://coveralls.io/repos/github/go-cmd/cmd/badge.svg [cover-url]: https://coveralls.io/github/go-cmd/cmd [godoc-img]: https://godoc.org/github.com/go-cmd/cmd?status.svg From 3c178d137009ca3720afe6e190a522651fbd5e90 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Mon, 11 Oct 2021 11:54:37 -0400 Subject: [PATCH 2/2] Add cmd_windows_internal_test.go to test os.FindProcess(pid) error --- cmd_windows_internal_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmd_windows_internal_test.go diff --git a/cmd_windows_internal_test.go b/cmd_windows_internal_test.go new file mode 100644 index 0000000..a65a757 --- /dev/null +++ b/cmd_windows_internal_test.go @@ -0,0 +1,14 @@ +// +build windows + +package cmd + +import ( + "testing" +) + +func TestTerminateProcess(t *testing.T) { + err := terminateProcess(123) + if err == nil { + t.Error("no error, expected one on terminating nonexisting PID") + } +}