mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os/signal: check MustHaveExec in TestAtomicStop
Change-Id: I284ecfab574b3058ba66b75f8f8d2ccdb90a8a0c Reviewed-on: https://go-review.googlesource.com/46650 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Elias Naur <elias.naur@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8ec7a39fec
commit
b4dd1d965d
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"internal/testenv"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
@ -313,6 +314,8 @@ func TestAtomicStop(t *testing.T) {
|
||||||
t.Fatal("atomicStopTestProgram returned")
|
t.Fatal("atomicStopTestProgram returned")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
testenv.MustHaveExec(t)
|
||||||
|
|
||||||
const execs = 10
|
const execs = 10
|
||||||
for i := 0; i < execs; i++ {
|
for i := 0; i < execs; i++ {
|
||||||
cmd := exec.Command(os.Args[0], "-test.run=TestAtomicStop")
|
cmd := exec.Command(os.Args[0], "-test.run=TestAtomicStop")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue