From f766a8b9aeb1b7e2c6ad404c3edbc25e6f7724a2 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 27 Sep 2021 22:39:26 +0200 Subject: [PATCH] term: enable TestMakeRawState on darwin/arm64 Go 1.16 renamed the iOS port from darwin/arm64 to ios/arm64 and darwin/arm64 was repurposed for the macOS ARM64 port (see https://golang.org/doc/go1.16#darwin). Now that Go 1.16 is the oldest supported release, the ios tag can be used exclusively to detect iOS and TestMakeRawState which ought to run on darwin/arm64 can be enabled on that platform. For golang/go#45696 Change-Id: Ic51903ea94def1f1144ca74db37533b5c4de8522 Reviewed-on: https://go-review.googlesource.com/c/term/+/352589 Trust: Tobias Klauser Reviewed-by: Ian Lance Taylor --- terminal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal_test.go b/terminal_test.go index b7766eb..d5c1794 100644 --- a/terminal_test.go +++ b/terminal_test.go @@ -407,7 +407,7 @@ func TestMakeRawState(t *testing.T) { t.Fatalf("failed to get terminal state from GetState: %s", err) } - if runtime.GOOS == "ios" || (runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64")) { + if runtime.GOOS == "ios" { t.Skip("MakeRaw not allowed on iOS; skipping test") }