]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove now-unused test string constants
authorIan Lance Taylor <iant@golang.org>
Fri, 1 Jan 2016 23:50:23 +0000 (15:50 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 4 Jan 2016 19:07:26 +0000 (19:07 +0000)
Change-Id: I491197e1505d02cd107a8788e5377cf1d0a9828c
Reviewed-on: https://go-review.googlesource.com/18157
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/crash_test.go

index 1c985a959961ee8ab45f3030a8983af5e52c39c7..4756e1a09968b794593d2be86f046b35c8f9ff2a 100644 (file)
@@ -264,19 +264,6 @@ func TestBreakpoint(t *testing.T) {
        }
 }
 
-const crashSource = `
-package main
-
-import (
-       "fmt"
-       "runtime"
-)
-
-{{if .Cgo}}
-import "C"
-{{end}}
-`
-
 func TestGoexitInPanic(t *testing.T) {
        // see issue 8774: this code used to trigger an infinite recursion
        output := runTestProg(t, "testprog", "GoexitInPanic")
@@ -330,23 +317,3 @@ func TestNetpollDeadlock(t *testing.T) {
                t.Fatalf("output does not start with %q:\n%s", want, output)
        }
 }
-
-const netpollDeadlockSource = `
-package main
-import (
-       "fmt"
-       "net"
-)
-func init() {
-       fmt.Println("dialing")
-       c, err := net.Dial("tcp", "localhost:14356")
-       if err == nil {
-               c.Close()
-       } else {
-               fmt.Println("error: ", err)
-       }
-}
-func main() {
-       fmt.Println("done")
-}
-`