aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/newlink/link_test.go
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2015-08-06 03:45:35 +0000
committerAndrew Gerrand <adg@golang.org>2015-08-06 04:06:12 +0000
commit0d20a61e68ba22fb416fe2aa8b6532026822bad0 (patch)
tree577de59a5d28417196964e7a20aff1fa6c8fb529 /src/cmd/newlink/link_test.go
parente7f6a244a2a1c9a597a96356476484157c3c19f8 (diff)
downloadgo1.5rc1.tar.xz
[release-branch.go1.5] cmd/newlink: remove from release branchgo1.5rc1
Change-Id: Iad86bde6f2e0482745a4000ec4e192ade352983b Reviewed-on: https://go-review.googlesource.com/13292 Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Andrew Gerrand <adg@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/newlink/link_test.go')
-rw-r--r--src/cmd/newlink/link_test.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/cmd/newlink/link_test.go b/src/cmd/newlink/link_test.go
deleted file mode 100644
index b5ae15fc71..0000000000
--- a/src/cmd/newlink/link_test.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// 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.
-
-package main
-
-import (
- "bytes"
- "cmd/internal/goobj"
- "io/ioutil"
- "testing"
-)
-
-func TestLinkHello(t *testing.T) {
- p := &Prog{
- GOOS: "darwin",
- GOARCH: "amd64",
- Error: func(s string) { t.Error(s) },
- StartSym: "_rt0_go",
- }
- var buf bytes.Buffer
- p.link(&buf, "testdata/hello.6")
- if p.NumError > 0 {
- return
- }
- if p.Syms[goobj.SymID{"_rt0_go", 0}] == nil || p.Syms[goobj.SymID{"hello", 1}] == nil {
- t.Errorf("Syms = %v, want at least [_rt0_go hello<1>]", p.Syms)
- }
-
- // uncomment to leave file behind for execution:
- if false {
- ioutil.WriteFile("a.out", buf.Bytes(), 0777)
- }
- checkGolden(t, buf.Bytes(), "testdata/link.hello.darwin.amd64")
-}