Skip app.TestQuit on windows as windows does not support interrupt.

Change-Id: I4ff0858ff312375dd697643a90b1043504d3a92b
This commit is contained in:
U-GINA-PC\gina 2019-04-03 09:05:56 -07:00
parent 8e56f1b305
commit 81a528d2c0
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import (
"io"
"os"
"os/exec"
"runtime"
"testing"
)
@ -171,6 +172,10 @@ func TestQuit(t *testing.T) {
if testing.Short() {
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")
err := cmd.Start()