Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eliasnaur opened this issue Feb 14, 2018 · 1 comment

Comments

@eliasnaur
Copy link
Contributor

commented Feb 14, 2018

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

@eliasnaur eliasnaur added the mobile label Feb 14, 2018

@gopherbot gopherbot added this to the Unreleased milestone Feb 14, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Feb 14, 2018

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

gopherbot pushed a commit to golang/mobile that referenced this issue Feb 21, 2018
Elias Naur
app: skip failing TestAndroidApp test
Updates golang/go#23835

Change-Id: If4aea8fde3b6b66980573d94f0d2189396f6a50c
Reviewed-on: https://go-review.googlesource.com/93997
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.