func canGenerateCore(t *testing.T) bool { … } const coreSignalSource … // TestGdbCoreSignalBacktrace tests that gdb can unwind the stack correctly // through a signal handler in a core file func TestGdbCoreSignalBacktrace(t *testing.T) { … } const coreCrashThreadSource … // TestGdbCoreCrashThreadBacktrace tests that runtime could let the fault thread to crash process // and make fault thread as number one thread while gdb in a core file func TestGdbCoreCrashThreadBacktrace(t *testing.T) { … }