summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-08-20 19:09:45 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-20 19:11:22 -0700
commit7609da6cb937f1152206dc0fe7294982ea7160e1 (patch)
treef6196b598e5c38a36b3f4b9f6d26c5ee4f7a8e8c /test
parent8b7e7a04d6efb70339ba02d5c2b1a532308bd0f2 (diff)
test: reset a signal handler before closing a signal channel
goroutine 5 [running]: os/signal.process(0x10e21c0, 0xc00050c280) third_party/go/gc/src/os/signal/signal.go:227 +0x164 os/signal.loop() third_party/go/gc/src/os/signal/signal_unix.go:23 +0x3e created by os/signal.init.0 third_party/go/gc/src/os/signal/signal_unix.go:29 +0x41 PiperOrigin-RevId: 264518530
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/syscall_test_runner.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go
index d1f9552a2..32408f021 100644
--- a/test/syscalls/syscall_test_runner.go
+++ b/test/syscalls/syscall_test_runner.go
@@ -280,6 +280,7 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
if err = cmd.Run(); err != nil {
t.Errorf("test %q exited with status %v, want 0", tc.FullName(), err)
}
+ signal.Stop(sig)
close(sig)
}