diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-14 21:20:36 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-15 20:55:01 +0000 |
commit | 7cdc84a15b1f83c6370a79c8e013246a6b495a73 (patch) | |
tree | 06326110c99e1a0ca7c94b491a060b306bc1f34f /test | |
parent | 412dc2f4d330a519fb7c26e6ecb0f2bbcb876bbb (diff) | |
download | go-7cdc84a15b1f83c6370a79c8e013246a6b495a73.tar.gz go-7cdc84a15b1f83c6370a79c8e013246a6b495a73.zip |
test: remove bug429 (duplicates runtime.TestSimpleDeadlock)
The bug429 tests is an exact duplicate of TestSimpleDeadlock in the
runtime package. The runtime package is the right place for this test,
and the version in the runtime package will run faster as the build
step is combined with other runtime package tests.
Change-Id: I6538d24e6df8e8c5e3e399d3ff37d68f3e52be56
Reviewed-on: https://go-review.googlesource.com/c/go/+/278173
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/fixedbugs/bug429.go | 14 | ||||
-rw-r--r-- | test/fixedbugs/bug429_run.go | 35 |
2 files changed, 0 insertions, 49 deletions
diff --git a/test/fixedbugs/bug429.go b/test/fixedbugs/bug429.go deleted file mode 100644 index 2c31f32da7..0000000000 --- a/test/fixedbugs/bug429.go +++ /dev/null @@ -1,14 +0,0 @@ -// skip - -// Copyright 2012 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Should print deadlock message, not hang. -// This test is run by bug429_run.go. - -package main - -func main() { - select {} -} diff --git a/test/fixedbugs/bug429_run.go b/test/fixedbugs/bug429_run.go deleted file mode 100644 index c2bb1b85cb..0000000000 --- a/test/fixedbugs/bug429_run.go +++ /dev/null @@ -1,35 +0,0 @@ -// run - -// +build !nacl,!js - -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Run the bug429.go test. - -package main - -import ( - "fmt" - "os" - "os/exec" - "path/filepath" - "strings" -) - -func main() { - cmd := exec.Command("go", "run", filepath.Join("fixedbugs", "bug429.go")) - out, err := cmd.CombinedOutput() - if err == nil { - fmt.Println("expected deadlock") - os.Exit(1) - } - - want := "fatal error: all goroutines are asleep - deadlock!" - got := string(out) - if !strings.Contains(got, want) { - fmt.Printf("got:\n%q\nshould contain:\n%q\n", got, want) - os.Exit(1) - } -} |