Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for osExit (0.14 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. release/downloadIstioCandidate.sh

    set -e
    
    # 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: Tue Jul 11 14:13:46 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. src/internal/cpu/cpu_arm64_freebsd.go

    // Copyright 2020 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 arm64
    
    package cpu
    
    func osInit() {
    	// Retrieve info from system register ID_AA64ISAR0_EL1.
    	isar0 := getisar0()
    
    	parseARM64SystemRegisters(isar0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 26 16:42:53 UTC 2022
    - 322 bytes
    - Viewed (0)
  7. src/internal/cpu/cpu_arm64_openbsd.go

    	// From OpenBSD's sys/sysctl.h.
    	_CTL_MACHDEP = 7
    
    	// From OpenBSD's machine/cpu.h.
    	_CPU_ID_AA64ISAR0 = 2
    	_CPU_ID_AA64ISAR1 = 3
    )
    
    //go:noescape
    func sysctlUint64(mib []uint32) (uint64, bool)
    
    func osInit() {
    	// Get ID_AA64ISAR0 from sysctl.
    	isar0, ok := sysctlUint64([]uint32{_CTL_MACHDEP, _CPU_ID_AA64ISAR0})
    	if !ok {
    		return
    	}
    	parseARM64SystemRegisters(isar0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 26 16:42:53 UTC 2022
    - 574 bytes
    - Viewed (0)
  8. src/internal/cpu/cpu_ppc64x_other.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build (ppc64 || ppc64le) && !aix && !linux
    
    package cpu
    
    func osinit() {
    	// Other operating systems do not support reading HWCap from auxiliary vector,
    	// reading privileged system registers or sysctl in user space to detect CPU
    	// features at runtime.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 18 06:24:06 UTC 2023
    - 423 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top