go/src/cmd/cgo/internal/testcarchive/carchive_test.go

var globalSkip

var bin

var cc

var exeSuffix

var (
	GOOS
	GOARCH
	GOPATH
)

var libgodir

var testWork

func TestMain(m *testing.M) {}

func testMain(m *testing.M) int {}

func goEnv(key string) string {}

func cmdToRun(name string) []string {}

// genHeader writes a C header file for the C-exported declarations found in .go
// source files in dir.
//
// TODO(golang.org/issue/35715): This should be simpler.
func genHeader(t *testing.T, header, dir string) {}

func testInstall(t *testing.T, exe, libgoa, libgoh string, buildcmd ...string) {}

var badLineRegexp

// checkLineComments checks that the export header generated by
// -buildmode=c-archive doesn't have any absolute paths in the #line
// comments. We don't want those paths because they are unhelpful for
// the user and make the files change based on details of the location
// of GOPATH.
func checkLineComments(t *testing.T, hdrname string) {}

// checkArchive verifies that the created library looks OK.
// We just check a couple of things now, we can add more checks as needed.
func checkArchive(t *testing.T, arname string) {}

// checkELFArchive checks an ELF archive.
func checkELFArchive(t *testing.T, arname string) {}

// checkELFArchiveObject checks an object in an ELF archive.
func checkELFArchiveObject(t *testing.T, arname string, off int64, obj io.ReaderAt) {}

func TestInstall(t *testing.T) {}

func TestEarlySignalHandler(t *testing.T) {}

func TestSignalForwarding(t *testing.T) {}

func TestSignalForwardingExternal(t *testing.T) {}

func TestSignalForwardingGo(t *testing.T) {}

// checkSignalForwardingTest calls t.Skip if the SignalForwarding test
// doesn't work on this platform.
func checkSignalForwardingTest(t *testing.T) {}

// buildSignalForwardingTest builds the executable used by the various
// signal forwarding tests.
func buildSignalForwardingTest(t *testing.T) {}

func runSignalForwardingTest(t *testing.T, arg string) error {}

// expectSignal checks that err, the exit status of a test program,
// shows a failure due to a specific signal or two. Returns whether we
// found an expected signal.
func expectSignal(t *testing.T, err error, sig1, sig2 syscall.Signal) bool {}

func TestOsSignal(t *testing.T) {}

func TestSigaltstack(t *testing.T) {}

const testar

func TestExtar(t *testing.T) {}

func TestPIE(t *testing.T) {}

func hasDynTag(t *testing.T, f *elf.File, tag elf.DynTag) bool {}

func TestSIGPROF(t *testing.T) {}

// TestCompileWithoutShared tests that if we compile code without the
// -shared option, we can put it into an archive. When we use the go
// tool with -buildmode=c-archive, it passes -shared to the compiler,
// so we override that. The go tool doesn't work this way, but Bazel
// will likely do it in the future. And it ought to work. This test
// was added because at one time it did not work on PPC Linux.
func TestCompileWithoutShared(t *testing.T) {}

// Test that installing a second time recreates the header file.
func TestCachedInstall(t *testing.T) {}

// Issue 35294.
func TestManyCalls(t *testing.T) {}

// Issue 49288.
func TestPreemption(t *testing.T) {}

// Issue 59294 and 68285. Test calling Go function from C after with
// various stack space.
func TestDeepStack(t *testing.T) {}

func BenchmarkCgoCallbackMainThread(b *testing.B) {}

func TestSharedObject(t *testing.T) {}