Skip to content

gtest.py hangs #1

@ppetraki

Description

@ppetraki

I'm trying to get this working with a modern ndk (20) against a nexus 5 emulator. I updated the build to use the latest gradle so it's not looking for mips anymore. The app is installed and running in the foreground in the emulator. However, any calls to gtest.py just hang. Here's the logcat.

2019-11-14 15:58:10.313 24256-24280/com.example.harsh.testcpp D/OpenGLRenderer: HWUI GL Pipeline
2019-11-14 15:58:10.358 24256-24280/com.example.harsh.testcpp I/OpenGLRenderer: Initialized EGL, version 1.4
2019-11-14 15:58:10.358 24256-24280/com.example.harsh.testcpp D/OpenGLRenderer: Swap behavior 1
2019-11-14 15:58:10.359 24256-24280/com.example.harsh.testcpp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2019-11-14 15:58:10.359 24256-24280/com.example.harsh.testcpp D/OpenGLRenderer: Swap behavior 0
2019-11-14 15:58:10.366 24256-24280/com.example.harsh.testcpp D/EGL_emulation: eglCreateContext: 0xa61040c0: maj 2 min 0 rcv 2
2019-11-14 15:58:10.375 24256-24280/com.example.harsh.testcpp D/EGL_emulation: eglMakeCurrent: 0xa61040c0: ver 2 0 (tinfo 0xa61032d0)
2019-11-14 15:58:10.420 24256-24280/com.example.harsh.testcpp D/EGL_emulation: eglMakeCurrent: 0xa61040c0: ver 2 0 (tinfo 0xa61032d0)

It looks like it starts up logcat and... that's it.

`
ppetraki@vanguard:~/Sandbox/Games/android-gtest-driver$ ps aux | grep adb
ppetraki 26422 0.4 0.0 561452 5876 ? Ssl 15:27 0:08 adb -L tcp:5037 fork-server server --reply-fd 5
ppetraki 32685 0.0 0.0 36784 2796 pts/2 T 15:58 0:00 /usr/bin/adb logcat

ppetraki@vanguard:~/Sandbox/Games/android-gtest-driver$ fg
python gtest.py --gtest_list_tests

^CTraceback (most recent call last):
File "gtest.py", line 63, in
scanLogcat()
File "gtest.py", line 33, in scanLogcat
line = p.stdout.readline()
KeyboardInterrupt
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions