Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GO_TEST_INTERRUPT_PIDS (0.33 sec)

  1. src/cmd/go/testdata/script/test2json_interrupt.txt

    	"strconv"
    	"testing"
    	"strings"
    	"time"
    )
    
    func FuzzInterrupt(f *testing.F) {
    	pids := os.Getenv("GO_TEST_INTERRUPT_PIDS")
    	if pids == "" {
    		// This is the main test process.
    		// Set the environment variable for fuzz workers.
    		pid := os.Getpid()
    		ppid := os.Getppid()
    		os.Setenv("GO_TEST_INTERRUPT_PIDS", fmt.Sprintf("%d,%d", ppid, pid))
    	}
    
    	sentInterrupt := false
    	f.Fuzz(func(t *testing.T, orig string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top