Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GO_OS_TEST_DRAIN_STDIN (0.12 sec)

  1. src/os/os_test.go

    	"path/filepath"
    	"reflect"
    	"runtime"
    	"runtime/debug"
    	"slices"
    	"strings"
    	"sync"
    	"syscall"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    func TestMain(m *testing.M) {
    	if Getenv("GO_OS_TEST_DRAIN_STDIN") == "1" {
    		Stdout.Close()
    		io.Copy(io.Discard, Stdin)
    		Exit(0)
    	}
    
    	log.SetFlags(log.LstdFlags | log.Lshortfile)
    
    	Exit(m.Run())
    }
    
    var dot = []string{
    	"dir_unix.go",
    	"env.go",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top