Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestBuildID (0.27 sec)

  1. src/cmd/cgo/internal/test/cgo_linux_test.go

    	}
    	testSetgidStress(t)
    }
    
    func Test1435(t *testing.T) { test1435(t) }
    func Test6997(t *testing.T) { test6997(t) }
    func Test9400(t *testing.T) { test9400(t) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:01 UTC 2024
    - 662 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/buildid_linux.go

    // to generate a separate build ID for each package using cgo, and the
    // linker concatenated them all.  We don't want that--we only want
    // one.
    
    import (
    	"bytes"
    	"debug/elf"
    	"os"
    	"testing"
    )
    
    func testBuildID(t *testing.T) {
    	f, err := elf.Open("/proc/self/exe")
    	if err != nil {
    		if os.IsNotExist(err) {
    			t.Skip("no /proc/self/exe")
    		}
    		t.Fatal("opening /proc/self/exe: ", err)
    	}
    	defer f.Close()
    
    	c := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testplugin/plugin_test.go

    	globalSkip(t)
    	goCmd(t, "run", "./checkdwarf/main.go", "plugin2.so", "plugin2.UnexportedNameReuse")
    	goCmd(t, "run", "./checkdwarf/main.go", "./host.exe", "main.main")
    }
    
    func TestBuildID(t *testing.T) {
    	// check that plugin has build ID.
    	globalSkip(t)
    	b := goCmd(t, "tool", "buildid", "plugin1.so")
    	if len(b) == 0 {
    		t.Errorf("build id not found")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top