Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDedupLibraries (0.21 sec)

  1. src/cmd/link/internal/ld/go_test.go

    // license that can be found in the LICENSE file.
    
    package ld
    
    import (
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"testing"
    
    	"cmd/internal/objabi"
    )
    
    func TestDedupLibraries(t *testing.T) {
    	ctxt := &Link{}
    	ctxt.Target.HeadType = objabi.Hlinux
    
    	libs := []string{"libc.so", "libc.so.6"}
    
    	got := dedupLibraries(ctxt, libs)
    	if !reflect.DeepEqual(got, libs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top