golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.02k stars 17.54k forks source link

x/mobile/app: TestAndroidApp test is failing #23835

Open eliasnaur opened 6 years ago

eliasnaur commented 6 years ago

Running go test golang.org/x/mobile/app:

--- FAIL: TestAndroidApp (1.01s)
    app_test.go:232: gomobile version
    app_test.go:232: gomobile install golang.org/x/mobile/app/internal/testapp
    app_test.go:235: gomobile install golang.org/x/mobile/app/internal/testapp exit status 1: gomobile: manual declaration of uses-sdk in AndroidManifest.xml not supported
FAIL
FAIL    golang.org/x/mobile/app 1.015s

Even after removing the explicit element from app/internal/testapp/AndroidManifest.xml, TestAndroidApp still fails:

--- FAIL: TestAndroidApp (2.78s)
    app_test.go:232: gomobile version
    app_test.go:232: gomobile install golang.org/x/mobile/app/internal/testapp
    app_test.go:77: local address: tcp:43823
    app_test.go:232: adb reverse tcp:12533 tcp:43823
    app_test.go:232: adb shell input keyevent 26
    app_test.go:232: adb shell input keyevent 82
    app_test.go:232: adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
    app_test.go:232: adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
    app_test.go:232: adb shell am start -n org.golang.testapp/org.golang.app.GoNativeActivity
    app_test.go:128: comm.recv: hello_from_testapp
    app_test.go:128: comm.send: hello_from_host

    app_test.go:128: comm.recv: lifecycle_visible
    app_test.go:128: comm.recv: size 2.2222223 1
    app_test.go:128: comm.recv: paint red
    app_test.go:232: adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
    app_test.go:128: comm.recv: size 2.2222223 1
    app_test.go:151: want orientation 2, got 1
    app_test.go:232: adb shell input tap 50 260
    app_test.go:128: comm.recv: size 2.2222223 1
    app_test.go:127: cannot scan recv command touch: "size 2.2222223 1": EOF
FAIL
FAIL    golang.org/x/mobile/app 2.789s
gopherbot commented 6 years ago

Change https://golang.org/cl/93997 mentions this issue: app: skip failing TestAndroidApp test