]> Cypherpunks repositories - gostls13.git/commit
syscall: move TestForegroundSignal create call out of goroutine
authorIan Lance Taylor <iant@golang.org>
Tue, 27 Apr 2021 18:28:40 +0000 (11:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 27 Apr 2021 19:12:41 +0000 (19:12 +0000)
commit0c3557e6adbc4892afbef65d76ec5bce3d84a964
tree74e62fb18f1183a167ac9fad32257c1be8d94d15
parent291eb0178f143b373a9bc4fbc4edaf3420175660
syscall: move TestForegroundSignal create call out of goroutine

That way the skip takes effect.

Also ignore the result of calling TIOCSPGRP when cleaing up TestForeground.
It has started to fail for some reason, and the result doesn't matter.

Also call TIOCSPGRP to clean up in TestForegroundSignal.

For #37217

Change-Id: I2e4282d7d91ad9a198eeb12cef01c2214c2a98c2
Reviewed-on: https://go-review.googlesource.com/c/go/+/314271
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/syscall/exec_unix_test.go