Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for cgo (0.19 sec)

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

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import "testing"
    
    // The actual test functions are in non-_test.go files
    // so that they can use cgo (import "C").
    // These wrappers are here for gotest to find.
    
    func Test1328(t *testing.T)                  { test1328(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cgo_linux_test.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import (
    	"os"
    	"runtime"
    	"testing"
    )
    
    func TestSetgid(t *testing.T) {
    	if runtime.GOOS == "android" {
    		t.Skip("unsupported on Android")
    	}
    	if _, err := os.Stat("/etc/alpine-release"); err == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/cgo_unix_test.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo && !windows
    
    package cgotest
    
    import "testing"
    
    func TestSigaltstack(t *testing.T) { testSigaltstack(t) }
    func TestSigprocmask(t *testing.T) { testSigprocmask(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 391 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/cgo_thread_lock.go

    		for {
    			select {
    			case <-stop:
    				return
    			case <-time.After(time.Millisecond * 100):
    			}
    		}
    	}()
    	defer close(stop)
    
    	for i := 0; i < 1000; i++ {
    		if !C.Ctid() {
    			t.Fatalf("cgo has not locked OS thread")
    		}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/cgo_stubs_android_test.go

    Austin Clements <******@****.***> 1683224724 -0400
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 359 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cgo_stubs_ppc64x_internal_linking_test.go

    Paul E. Murphy <******@****.***> 1707950547 -0600
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 20 15:35:35 GMT 2024
    - 631 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue29563.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo && !windows
    
    // Issue 29563: internal linker fails on duplicate weak symbols.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 363 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue24161e1/main.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin
    
    package issue24161e1
    
    /*
    #cgo CFLAGS: -x objective-c
    #cgo LDFLAGS: -framework CoreFoundation -framework Security
    #include <TargetConditionals.h>
    #include <CoreFoundation/CoreFoundation.h>
    #include <Security/Security.h>
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue21897.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin && cgo && !internal
    
    package cgotest
    
    /*
    #cgo LDFLAGS: -framework CoreFoundation
    #include <CoreFoundation/CoreFoundation.h>
    */
    import "C"
    import (
    	"runtime/debug"
    	"testing"
    	"unsafe"
    )
    
    func test21897(t *testing.T) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/callback_windows.go

    			// when using the external linker.
    			continue
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    		if !strings.HasPrefix(fname, "test.") {
    			continue
    		}
    		got = append(got, fname)
    	}
    	if !reflect.DeepEqual(want, got) {
    		t.Errorf("incorrect backtrace:\nwant:\t%v\ngot:\t%v", want, got)
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
Back to top