...
Source file
src/debug/pe/file_cgo_test.go
1
2
3
4
5
6
7 package pe
8
9 import (
10 "os/exec"
11 "runtime"
12 "testing"
13 )
14
15 func testCgoDWARF(t *testing.T, linktype int) {
16 if _, err := exec.LookPath("gcc"); err != nil {
17 t.Skip("skipping test: gcc is missing")
18 }
19 testDWARF(t, linktype)
20 }
21
22 func TestDefaultLinkerDWARF(t *testing.T) {
23 testCgoDWARF(t, linkCgoDefault)
24 }
25
26 func TestInternalLinkerDWARF(t *testing.T) {
27 if runtime.GOARCH == "arm64" {
28 t.Skip("internal linker disabled on windows/arm64")
29 }
30 testCgoDWARF(t, linkCgoInternal)
31 }
32
33 func TestExternalLinkerDWARF(t *testing.T) {
34 testCgoDWARF(t, linkCgoExternal)
35 }
36
View as plain text