mirror of https://github.com/perkeep/perkeep.git
Skip app.TestQuit on windows as windows does not support interrupt.
Change-Id: I4ff0858ff312375dd697643a90b1043504d3a92b
This commit is contained in:
parent
8e56f1b305
commit
81a528d2c0
|
@ -22,6 +22,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -171,6 +172,10 @@ func TestQuit(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
t.Skip("skipping test in short mode")
|
t.Skip("skipping test in short mode")
|
||||||
}
|
}
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
// windows does not support interrupts
|
||||||
|
t.Skip("Skipping interrupt test on windows")
|
||||||
|
}
|
||||||
|
|
||||||
cmd := exec.Command("sleep", "10000")
|
cmd := exec.Command("sleep", "10000")
|
||||||
err := cmd.Start()
|
err := cmd.Start()
|
||||||
|
|
Loading…
Reference in New Issue