Skip to content

Commit b52e899

Browse files
committed
Wait for child.
1 parent 4877073 commit b52e899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/signal_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func TestCtrlHandler(t *testing.T) {
119119
defer cancel()
120120

121121
// run test program
122-
cmd = exec.CommandContext(ctx, "cmd.exe", "/c", "start", exe, conn.LocalAddr().String())
122+
cmd = exec.CommandContext(ctx, "cmd.exe", "/c", "start", "", "/wait", exe, conn.LocalAddr().String())
123123
if err := cmd.Start(); err != nil {
124124
t.Fatalf("Start failed: %v", err)
125125
}

0 commit comments

Comments
 (0)