Black Lives Matter. Support the Equal Justice Initiative.

Source file src/cmd/internal/sys/supported_test.go

Documentation: cmd/internal/sys

     1  // Copyright 2020 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package sys
     6  
     7  import (
     8  	"internal/testenv"
     9  	"runtime"
    10  	"testing"
    11  )
    12  
    13  func TestMustLinkExternalMatchesTestenv(t *testing.T) {
    14  	// MustLinkExternal and testenv.CanInternalLink are the exact opposite.
    15  	if b := MustLinkExternal(runtime.GOOS, runtime.GOARCH); b != !testenv.CanInternalLink() {
    16  		t.Fatalf("MustLinkExternal() == %v, testenv.CanInternalLink() == %v, don't match", b, testenv.CanInternalLink())
    17  	}
    18  }
    19  

View as plain text