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 <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tobias Klauser
2021-09-27 22:39:26 +02:00
committed by Tobias Klauser
parent 140adaaadf
commit f766a8b9ae

View File

@@ -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")
}