Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for osExit (0.31 sec)

  1. pkg/proxy/node_test.go

    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/klog/v2"
    )
    
    func TestNodePodCIDRHandlerAdd(t *testing.T) {
    	oldKlogOsExit := klog.OsExit
    	defer func() {
    		klog.OsExit = oldKlogOsExit
    	}()
    	klog.OsExit = customExit
    
    	tests := []struct {
    		name            string
    		oldNodePodCIDRs []string
    		newNodePodCIDRs []string
    		expectPanic     bool
    	}{
    		{
    			name: "both empty",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 10 16:50:29 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. pkg/test/framework/suite.go

    		func(_ *suiteContext) int {
    			return m.Run()
    		},
    		os.Exit,
    		getSettings)
    }
    
    func newSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := &suiteImpl{
    		testID:      testID,
    		mRun:        fn,
    		osExit:      osExit,
    		getSettings: getSettingsFn,
    		labels:      label.NewSet(),
    	}
    
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. pkg/test/framework/suite_test.go

    	defer rtMu.Unlock()
    	rt = nil
    }
    
    // Create a bogus environment for testing. This can be removed when "environments" are removed
    func newTestSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := newSuite(testID, fn, osExit, getSettingsFn)
    	s.envFactory = func(ctx resource.Context) (resource.Environment, error) {
    		return kube.FakeEnvironment{}, nil
    	}
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. release/downloadIstioCtl.sh

    #
    # where ${BRANCH} is either your branch name (e.g. release-1.4) or master.
    #
    
    # Determines the operating system.
    OS="${TARGET_OS:-$(uname)}"
    if [ "${OS}" = "Darwin" ] ; then
      OSEXT="osx"
    else
      OSEXT="linux"
    fi
    
    # Determine the latest Istio version by version number ignoring alpha, beta, and rc versions.
    if [ "${ISTIO_VERSION}" = "" ] ; then
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 14:11:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/internal/cpu/cpu_arm64_darwin.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && darwin && !ios
    
    package cpu
    
    import _ "unsafe" // for linkname
    
    func osInit() {
    	ARM64.HasATOMICS = sysctlEnabled([]byte("hw.optional.armv8_1_atomics\x00"))
    	ARM64.HasCRC32 = sysctlEnabled([]byte("hw.optional.armv8_crc32\x00"))
    	ARM64.HasSHA512 = sysctlEnabled([]byte("hw.optional.armv8_2_sha512\x00"))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/runtime/os_openbsd_arm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    func checkgoarm() {
    	// TODO(minux): FP checks like in os_linux_arm.go.
    
    	// osinit not called yet, so ncpu not set: must use getncpu directly.
    	if getncpu() > 1 && goarm < 7 {
    		print("runtime: this system has multiple CPUs and must use\n")
    		print("atomic synchronization instructions. Recompile using GOARM=7.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 662 bytes
    - Viewed (0)
  7. src/runtime/os_netbsd_arm.go

    	mc.__gregs[_REG_R1] = uint32(uintptr(unsafe.Pointer(gp)))
    	mc.__gregs[_REG_R2] = uint32(fn)
    }
    
    func checkgoarm() {
    	// TODO(minux): FP checks like in os_linux_arm.go.
    
    	// osinit not called yet, so ncpu not set: must use getncpu directly.
    	if getncpu() > 1 && goarm < 7 {
    		print("runtime: this system has multiple CPUs and must use\n")
    		print("atomic synchronization instructions. Recompile using GOARM=7.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/runtime/stubs2.go

    //
    //go:noescape
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    
    //go:noescape
    func open(name *byte, mode, perm int32) int32
    
    // return value is only set on linux to be used in osinit().
    func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
    
    // exitThread terminates the current thread, writing *wait = freeMStack when
    // the stack is safe to reclaim.
    //
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. src/runtime/os_freebsd_arm.go

    		print("a binary compiled for VFPv3 hard floating point. Recompile adding ,softfloat\n")
    		print("to GOARM or changing GOARM to 6.\n")
    		exit(1)
    	}
    
    	// osinit not called yet, so ncpu not set: must use getncpu directly.
    	if getncpu() > 1 && goarm < 7 {
    		print("runtime: this system has multiple CPUs and must use\n")
    		print("atomic synchronization instructions. Recompile using GOARM=7.\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/runtime/os_openbsd_syscall2.go

    //
    //go:noescape
    func write1(fd uintptr, p unsafe.Pointer, n int32) int32
    
    //go:noescape
    func open(name *byte, mode, perm int32) int32
    
    // return value is only set on linux to be used in osinit().
    func madvise(addr unsafe.Pointer, n uintptr, flags int32) int32
    
    // exitThread terminates the current thread, writing *wait = freeMStack when
    // the stack is safe to reclaim.
    //
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top