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 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") + } +}