mirror of https://github.com/golang/go.git
cmd/link: remove superfluous check in TestIssue34788Android386TLSSequence
err != nil is already checked in the if condition one line above. Change-Id: If36cdb41016f7be98a65be0a7211d85cd6017f87 Reviewed-on: https://go-review.googlesource.com/c/go/+/250477 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
bb54a855a9
commit
02f445258c
|
|
@ -455,9 +455,7 @@ func TestIssue34788Android386TLSSequence(t *testing.T) {
|
||||||
cmd := exec.Command(testenv.GoToolPath(t), "tool", "compile", "-o", obj, src)
|
cmd := exec.Command(testenv.GoToolPath(t), "tool", "compile", "-o", obj, src)
|
||||||
cmd.Env = append(os.Environ(), "GOARCH=386", "GOOS=android")
|
cmd.Env = append(os.Environ(), "GOARCH=386", "GOOS=android")
|
||||||
if out, err := cmd.CombinedOutput(); err != nil {
|
if out, err := cmd.CombinedOutput(); err != nil {
|
||||||
if err != nil {
|
t.Fatalf("failed to compile blah.go: %v, output: %s\n", err, out)
|
||||||
t.Fatalf("failed to compile blah.go: %v, output: %s\n", err, out)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run objdump on the resulting object.
|
// Run objdump on the resulting object.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue