]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm/internal/asm: don't set testOut in testErrors
authorIan Lance Taylor <iant@golang.org>
Wed, 7 Sep 2022 00:24:23 +0000 (17:24 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 9 Sep 2022 01:04:57 +0000 (01:04 +0000)
It's set but the output is never used.

Change-Id: I36ecb9c5f087a85289529907ede9f9bfc295d739
Reviewed-on: https://go-review.googlesource.com/c/go/+/428637
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

src/cmd/asm/internal/asm/endtoend_test.go

index 9660a90ab1e22e6293f3f94d31d904760a14debe..78b72ca9c41d8db5b3ffd8090ee9e45ac6f8a19f 100644 (file)
@@ -277,7 +277,6 @@ func testErrors(t *testing.T, goarch, file string, flags ...string) {
        parser := NewParser(ctxt, architecture, lexer, false)
        pList := new(obj.Plist)
        var ok bool
-       testOut = new(strings.Builder) // The assembler writes test output to this buffer.
        ctxt.Bso = bufio.NewWriter(os.Stdout)
        ctxt.IsAsm = true
        defer ctxt.Bso.Flush()