mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
misc/cgo/testcshared: temporarily skip testing on android
For #21513 Change-Id: Ibe9479f8afc6f425779a737a807ff2f839a4f311 Reviewed-on: https://go-review.googlesource.com/57250 TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
parent
fc583c542b
commit
a6ffab6b67
@ -250,6 +250,9 @@ func cleanupAndroid(t *testing.T) {
|
|||||||
|
|
||||||
// test0: exported symbols in shared lib are accessible.
|
// test0: exported symbols in shared lib are accessible.
|
||||||
func TestExportedSymbols(t *testing.T) {
|
func TestExportedSymbols(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
cmd := "testp"
|
cmd := "testp"
|
||||||
bin := cmdToRun(cmd)
|
bin := cmdToRun(cmd)
|
||||||
|
|
||||||
@ -272,6 +275,9 @@ func TestExportedSymbols(t *testing.T) {
|
|||||||
|
|
||||||
// test1: shared library can be dynamically loaded and exported symbols are accessible.
|
// test1: shared library can be dynamically loaded and exported symbols are accessible.
|
||||||
func TestExportedSymbolsWithDynamicLoad(t *testing.T) {
|
func TestExportedSymbolsWithDynamicLoad(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
cmd := "testp"
|
cmd := "testp"
|
||||||
bin := cmdToRun(cmd)
|
bin := cmdToRun(cmd)
|
||||||
|
|
||||||
@ -294,6 +300,9 @@ func TestExportedSymbolsWithDynamicLoad(t *testing.T) {
|
|||||||
|
|
||||||
// test2: tests libgo2 which does not export any functions.
|
// test2: tests libgo2 which does not export any functions.
|
||||||
func TestUnexportedSymbols(t *testing.T) {
|
func TestUnexportedSymbols(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
cmd := "testp2"
|
cmd := "testp2"
|
||||||
libname := "libgo2." + libSuffix
|
libname := "libgo2." + libSuffix
|
||||||
bin := cmdToRun(cmd)
|
bin := cmdToRun(cmd)
|
||||||
@ -333,6 +342,9 @@ func TestUnexportedSymbols(t *testing.T) {
|
|||||||
|
|
||||||
// test3: tests main.main is exported on android.
|
// test3: tests main.main is exported on android.
|
||||||
func TestMainExportedOnAndroid(t *testing.T) {
|
func TestMainExportedOnAndroid(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
if GOOS != "android" {
|
if GOOS != "android" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -359,6 +371,9 @@ func TestMainExportedOnAndroid(t *testing.T) {
|
|||||||
|
|
||||||
// test4: test signal handlers
|
// test4: test signal handlers
|
||||||
func TestSignalHandlers(t *testing.T) {
|
func TestSignalHandlers(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
cmd := "testp4"
|
cmd := "testp4"
|
||||||
libname := "libgo4." + libSuffix
|
libname := "libgo4." + libSuffix
|
||||||
bin := cmdToRun(cmd)
|
bin := cmdToRun(cmd)
|
||||||
@ -392,6 +407,9 @@ func TestSignalHandlers(t *testing.T) {
|
|||||||
|
|
||||||
// test5: test signal handlers with os/signal.Notify
|
// test5: test signal handlers with os/signal.Notify
|
||||||
func TestSignalHandlersWithNotify(t *testing.T) {
|
func TestSignalHandlersWithNotify(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
cmd := "testp5"
|
cmd := "testp5"
|
||||||
libname := "libgo5." + libSuffix
|
libname := "libgo5." + libSuffix
|
||||||
bin := cmdToRun(cmd)
|
bin := cmdToRun(cmd)
|
||||||
@ -424,6 +442,9 @@ func TestSignalHandlersWithNotify(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestPIE(t *testing.T) {
|
func TestPIE(t *testing.T) {
|
||||||
|
if GOOS == "android" {
|
||||||
|
t.Skip("Skipping failing test, see issue 21513 for details")
|
||||||
|
}
|
||||||
switch GOOS {
|
switch GOOS {
|
||||||
case "linux", "android":
|
case "linux", "android":
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user