github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/os/exec/read3.go (about) 1 // Copyright 2020 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build ignore 6 7 // This is a test program that verifies that it can read from 8 // descriptor 3 and that no other descriptors are open. 9 // This is not done via TestHelperProcess and GO_EXEC_TEST_PID 10 // because we want to ensure that this program does not use cgo, 11 // because C libraries can open file descriptors behind our backs 12 // and confuse the test. See issue 25628. 13 package main