Skip to content

os/signal: spurious timeout in TestTerminalSignal #48906

@dilyanpalauzov

Description

@dilyanpalauzov

I want go compile go 1.17 (commit 2ac3bdf) with “go version go1.16.5 gccgo (GCC) 11.2.1 20211010 linux/amd” on a relatively slow system. I call

$ GOROOT_BOOTSTRAP=/usr/local GO_TEST_TIMEOUT_SCALE=100 ./all.bash

which prints:

ok      net/textproto   0.024s
ok      net/url 0.015s
ok      os      2.817s
ok      os/exec 2.127s
--- FAIL: TestTerminalSignal (511.74s)
    signal_cgo_test.go:147: "PS1='prompt> '\r\n"
    signal_cgo_test.go:147: "bash-4.4# PS1='prompt> '\r\n"
    signal_cgo_test.go:147: "prompt> \r<08050/b968/signal.test -test.run=TestTerminalSignal\r\n"
    signal_cgo_test.go:147: "test program entering read\r\n"
    signal_cgo_test.go:147: "^Z\r\n"
    signal_cgo_test.go:147: "[1]+  Stopped                 GO_TEST_TERMINAL_SIGNALS=1 /tmp/go-build3237808050/b968/signal.test -test.run=TestTerminalSignal\r\n"
    signal_cgo_test.go:147: "prompt> fg\r\n"
    signal_cgo_test.go:147: "GO_TEST_TERMINAL_SIGNALS=1 /tmp/go-build3237808050/b968/signal.test -test.run=TestTerminalSignal\r\n"
    signal_cgo_test.go:147: "\r\n"
    signal_cgo_test.go:147: "read newline\r\n"
    signal_cgo_test.go:230: timed out waiting for shell prompt
FAIL
FAIL    os/signal       661.464s
ok      os/user 0.006s
ok      path    0.021s
ok      path/filepath   0.052s

Any idea how can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.TestingAn issue that has been verified to require only test changes, not just a test failure.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions