]> Cypherpunks repositories - gostls13.git/commit
cmd/asm: initialize assembler before running error tests
authorerifan01 <eric.fang@arm.com>
Wed, 7 Jun 2023 06:49:00 +0000 (14:49 +0800)
committerEric Fang <eric.fang@arm.com>
Mon, 24 Jul 2023 01:13:17 +0000 (01:13 +0000)
commitb02725a8897ec46e26b99e3be9b9805021c77064
treef1aaf0b30caf0570d2983bc489802220b195190e
parent02482a546fd7d626427ce336a4622b90d82c14d1
cmd/asm: initialize assembler before running error tests

The Test{ARCH}Errors tests will call ctxt.Arch.Assemble, but this
function requires the assembler has been initialized. So this CL adds
a call to architecture.Init(ctxt) in testErrors, otherwise running
Test{ARCH}Errors alone would fail.

Change-Id: I4f3ba5a5fc1375d28779701989cf700cb4d1b635
Reviewed-on: https://go-review.googlesource.com/c/go/+/505976
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Eric Fang <eric.fang@arm.com>
src/cmd/asm/internal/asm/endtoend_test.go