// test0: exported symbols in shared lib are accessible.
func TestExportedSymbols(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
cmd := "testp"
bin := cmdToRun(cmd)
// test1: shared library can be dynamically loaded and exported symbols are accessible.
func TestExportedSymbolsWithDynamicLoad(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
cmd := "testp"
bin := cmdToRun(cmd)
// test2: tests libgo2 which does not export any functions.
func TestUnexportedSymbols(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
cmd := "testp2"
libname := "libgo2." + libSuffix
bin := cmdToRun(cmd)
// test3: tests main.main is exported on android.
func TestMainExportedOnAndroid(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
if GOOS != "android" {
return
}
// test4: test signal handlers
func TestSignalHandlers(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
cmd := "testp4"
libname := "libgo4." + libSuffix
bin := cmdToRun(cmd)
// test5: test signal handlers with os/signal.Notify
func TestSignalHandlersWithNotify(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
cmd := "testp5"
libname := "libgo5." + libSuffix
bin := cmdToRun(cmd)
}
func TestPIE(t *testing.T) {
- if GOOS == "android" {
- t.Skip("Skipping failing test, see issue 21513 for details")
- }
switch GOOS {
case "linux", "android":
break