Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for testProg (0.14 sec)

  1. src/runtime/crash_test.go

    		t.Skip("-quick")
    	}
    	testenv.MustHaveGoBuild(t)
    
    	testprog.Lock()
    	if testprog.dir == "" {
    		dir, err := os.MkdirTemp("", "go-build")
    		if err != nil {
    			t.Fatalf("failed to create temp directory: %v", err)
    		}
    		testprog.dir = dir
    		toRemove = append(toRemove, dir)
    	}
    
    	if testprog.target == nil {
    		testprog.target = make(map[string]*buildexe)
    	}
    	name := binary
    	if len(flags) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. src/runtime/gc_test.go

    )
    
    func TestGcSys(t *testing.T) {
    	t.Skip("skipping known-flaky test; golang.org/issue/37331")
    	if os.Getenv("GOGC") == "off" {
    		t.Skip("skipping test; GOGC=off in environment")
    	}
    	got := runTestProg(t, "testprog", "GCSys")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestGcDeepNesting(t *testing.T) {
    	type T [2][2][2][2][2][2][2][2][2][2]*int
    	a := new(T)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/internal/trace/trace_test.go

    		type frame struct {
    			fn   string
    			line int
    		}
    		type evDesc struct {
    			kind   trace.EventKind
    			match  string
    			frames []frame
    		}
    		// mainLine is the line number of `func main()` in testprog/stacks.go.
    		const mainLine = 21
    		want := []evDesc{
    			{trace.EventStateTransition, "Goroutine Running->Runnable", []frame{
    				{"main.main", mainLine + 82},
    			}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/runtime/syscall_windows_test.go

    		testenv.SkipFlaky(t, 49681)
    	}
    	o := runTestProg(t, "testprog", "RaiseException")
    	if strings.Contains(o, "RaiseException should not return") {
    		t.Fatalf("RaiseException did not crash program: %v", o)
    	}
    	if !strings.Contains(o, "Exception 0xbad") {
    		t.Fatalf("No stack trace: %v", o)
    	}
    }
    
    func TestZeroDivisionException(t *testing.T) {
    	o := runTestProg(t, "testprog", "ZeroDivisionException")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  5. src/runtime/malloc_test.go

    	leaked := PageCachePagesLeaked()
    	if leaked != 0 {
    		t.Fatalf("found %d leaked pages in page caches", leaked)
    	}
    }
    
    func TestPhysicalMemoryUtilization(t *testing.T) {
    	got := runTestProg(t, "testprog", "GCPhys")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestScavengedBitsCleared(t *testing.T) {
    	var mismatches [128]BitsMismatch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/runtime/crash_cgo_test.go

    		}
    
    		t.Run(test, func(t *testing.T) {
    			if test == "SegvInCgo" && runtime.GOOS == "ios" {
    				testenv.SkipFlaky(t, 59947) // Don't even try, in case it times out.
    			}
    
    			t.Parallel()
    			prog := "testprog"
    			if strings.HasSuffix(test, "InCgo") {
    				prog = "testprogcgo"
    			}
    			got := runTestProg(t, prog, test)
    			t.Log(got)
    			want := "SIGSEGV"
    			if !strings.Contains(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (1)
  7. src/internal/trace/testdata/tests/go122-annotations-stress.test

    String id=111
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/trace/annotation.go"
    String id=112
    	data="main.do"
    String id=113
    	data="/usr/local/google/home/mknyszek/work/go-1/src/internal/trace/v2/testdata/testprog/annotations-stress.go"
    String id=114
    	data="main.main"
    String id=115
    	data="sync.(*Mutex).Lock"
    String id=116
    	data="/usr/local/google/home/mknyszek/work/go-1/src/sync/mutex.go"
    String id=117
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  8. pkg/kubelet/logs/container_log_manager_test.go

    	testFile.Close()
    
    	testLog := testFile.Name()
    	c := &containerLogManager{osInterface: container.RealOS{}}
    	require.NoError(t, c.compressLog(testLog))
    	_, err = os.Stat(testLog + compressSuffix)
    	assert.NoError(t, err, "log should be compressed")
    	_, err = os.Stat(testLog + tmpSuffix)
    	assert.Error(t, err, "temporary log should be renamed")
    	_, err = os.Stat(testLog)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. src/os/file.go

    func Chdir(dir string) error {
    	if e := syscall.Chdir(dir); e != nil {
    		testlog.Open(dir) // observe likely non-existent directory
    		return &PathError{Op: "chdir", Path: dir, Err: e}
    	}
    	if runtime.GOOS == "windows" {
    		getwdCache.Lock()
    		getwdCache.dir = dir
    		getwdCache.Unlock()
    	}
    	if log := testlog.Logger(); log != nil {
    		wd, err := Getwd()
    		if err == nil {
    			log.Chdir(wd)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. pkg/spiffe/spiffe_test.go

    			expectedURI:    "spiffe://cluster.local/ns/foo/sa/bar",
    		},
    		{
    			namespace:      "foo",
    			serviceAccount: "bar",
    			trustDomain:    "kube-federating-id@testproj.iam.gserviceaccount.com",
    			expectedURI:    "spiffe://kube-federating-id.testproj.iam.gserviceaccount.com/ns/foo/sa/bar",
    		},
    	}
    	for id, tc := range testCases {
    		got, err := genSpiffeURI(tc.trustDomain, tc.namespace, tc.serviceAccount)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top