Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for runTestProg (0.2 sec)

  1. src/runtime/coro_test.go

    		"CoroLockOSThreadLockIterYieldNewG",
    		"CoroLockOSThreadLockAfterPull",
    		"CoroLockOSThreadStopLocked",
    		"CoroLockOSThreadStopLockedIterNested",
    	} {
    		t.Run(test, func(t *testing.T) {
    			checkCoroTestProgOutput(t, runTestProg(t, "testprog", test))
    		})
    	}
    }
    
    func TestCoroCgoCallback(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	if runtime.GOOS == "windows" {
    		t.Skip("coro cgo callback tests not supported on Windows")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:36:37 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/runtime/numcpu_freebsd_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import "testing"
    
    func TestFreeBSDNumCPU(t *testing.T) {
    	got := runTestProg(t, "testprog", "FreeBSDNumCPU")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 22:06:24 UTC 2017
    - 381 bytes
    - Viewed (0)
  3. src/internal/trace/testdata/mktests.go

    	log.SetFlags(0)
    	ctx, err := newContext()
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runGenerators(); err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runTestProg("./testprog/annotations.go"); err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runTestProg("./testprog/annotations-stress.go"); err != nil {
    		log.Fatal(err)
    	}
    }
    
    type context struct {
    	testNames map[string]struct{}
    	filter    *regexp.Regexp
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/runtime/panic_test.go

    		{"panicCustomUint64", `panic: main.MyUint64(93)`},
    		{"panicCustomUintptr", `panic: main.MyUintptr(93)`},
    	}
    
    	for _, tt := range tests {
    		t := t
    		t.Run(tt.name, func(t *testing.T) {
    			output := runTestProg(t, "testprog", tt.name)
    			if !strings.HasPrefix(output, tt.wantPanicPrefix) {
    				t.Fatalf("%q\nis not present in\n%s", tt.wantPanicPrefix, output)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/runtime/crash_unix_test.go

    		t.Errorf("got %v; expected SIGTERM", ee)
    	}
    }
    
    func TestSignalIgnoreSIGTRAP(t *testing.T) {
    	if runtime.GOOS == "openbsd" {
    		testenv.SkipFlaky(t, 49725)
    	}
    
    	output := runTestProg(t, "testprognet", "SignalIgnoreSIGTRAP")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    	}
    }
    
    func TestSignalDuringExec(t *testing.T) {
    	switch runtime.GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top