Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for testProg (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/internal/trace/testdata/tests/go122-annotations.test

    String id=28
    	data="0123456789abcdef"
    String id=29
    	data="post-existing region"
    String id=30
    	data="main.main.func1.1"
    String id=31
    	data="/usr/local/google/home/mknyszek/work/go-1/src/internal/trace/v2/testdata/testprog/annotations.go"
    String id=32
    	data="runtime/trace.WithRegion"
    String id=33
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/trace/annotation.go"
    String id=34
    	data="main.main.func1"
    String id=35
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/testing/internal/testdeps/deps.go

    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    	set bool
    }
    
    func (l *testLog) Getenv(key string) {
    	l.add("getenv", key)
    }
    
    func (l *testLog) Open(name string) {
    	l.add("open", name)
    }
    
    func (l *testLog) Stat(name string) {
    	l.add("stat", name)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/ExtraPropertiesIntegrationTest.groovy

                createDirs("a", "a/a1")
                settingsFile << "include ':a:a1'"
    
                buildFile << """
                    ext.testProp = 'rootValue'
    
                    task checkTestProp {
                        doLast {
                            assert testProp == 'rootValue'
                        }
                    }
                """.stripIndent()
    
                ['a', 'b', 'a:a1'].each {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/os/stat.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    import "internal/testlog"
    
    // Stat returns a [FileInfo] describing the named file.
    // If there is an error, it will be of type [*PathError].
    func Stat(name string) (FileInfo, error) {
    	testlog.Stat(name)
    	return statNolog(name)
    }
    
    // Lstat returns a [FileInfo] describing the named file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 973 bytes
    - Viewed (0)
  10. src/internal/testlog/exit.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testlog
    
    import (
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // PanicOnExit0 reports whether to panic on a call to os.Exit(0).
    // This is in the testlog package because, like other definitions in
    // package testlog, it is a hook between the testing package and the
    // os package. This is used to ensure that an early call to os.Exit(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
Back to top