diff options
| author | Ian Lance Taylor <iant@golang.org> | 2023-05-11 14:01:02 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-05-12 01:46:05 +0000 |
| commit | a25688d406f2a4296d39b22a2b10aea7178eddc6 (patch) | |
| tree | 59a19eac1e2f15f94ff5e068fc777598268541e9 /src/runtime/testdata | |
| parent | e2500be54947186d82c7f4bd93468fdff8a23837 (diff) | |
| download | go-a25688d406f2a4296d39b22a2b10aea7178eddc6.tar.xz | |
runtime: remove crash_cgo_test CgoRaceSignal timeout
The test had a 5 second timeout. Running the test on a Darwin system
sometimes took less than 5 seconds but often took up to 8 seconds.
We don't need a timeout anyhow. Instead, use testenv.Command to
run the program, which uses the test timeout.
Fixes #59807
Change-Id: Ibf3eda9702731bf98601782f4abd11c3caa0bf40
Reviewed-on: https://go-review.googlesource.com/c/go/+/494456
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/runtime/testdata')
| -rw-r--r-- | src/runtime/testdata/testprogcgo/racesig.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/runtime/testdata/testprogcgo/racesig.go b/src/runtime/testdata/testprogcgo/racesig.go index b7f3a21529..06670205ff 100644 --- a/src/runtime/testdata/testprogcgo/racesig.go +++ b/src/runtime/testdata/testprogcgo/racesig.go @@ -81,8 +81,6 @@ import "C" import ( "fmt" - "os" - "time" ) func init() { @@ -90,14 +88,6 @@ func init() { } func CgoRaceSignal() { - // The failure symptom is that the program hangs because of a - // deadlock in malloc, so set an alarm. - go func() { - time.Sleep(5 * time.Second) - fmt.Println("Hung for 5 seconds") - os.Exit(1) - }() - C.runRaceSignalThread() fmt.Println("OK") } |
