webrtc/sdk/android/native_unittests
Karl Wiberg 0611a15c29 Make the stacktrace unit test more robust
The stacktrace unit test was flaking on arm32; my theory is that this
happened when the thread whose stack we were dumping was doing a
system call inside `params->deadlock_start_event.Set();` in
ThreadFunction(). (This would be a problem because, according to the
comment at the bottom of the file, "stack traces originating from
kernel space do not include user space stack traces for ARM32.")

Attempt to solve this problem by spinning on an atomic flag instead,
since this involve no system calls. And add a short sleep to the main
thread, to give the other thread time to get from the barrier to the
thing it's actually supposed to deadlock on.

Bug: webrtc:10420
Change-Id: I4c6392157c8a06c64cb11146ffe9368e5bade6fc
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128340
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27158}
2019-03-18 11:19:13 +00:00
..
audio_device Use JavaAudioDeviceModule as default 2019-03-04 13:44:33 +00:00
codecs (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
org/webrtc Android: Support externally aligned timestamps 2018-11-15 11:41:06 +00:00
peerconnection Use JavaAudioDeviceModule as default 2019-03-04 13:44:33 +00:00
stacktrace Make the stacktrace unit test more robust 2019-03-18 11:19:13 +00:00
video (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
application_context_provider.cc Use JavaAudioDeviceModule as default 2019-03-04 13:44:33 +00:00
application_context_provider.h Use JavaAudioDeviceModule as default 2019-03-04 13:44:33 +00:00
DEPS Add unit tests for Android audio device module 2018-04-12 09:27:45 +00:00
java_types_unittest.cc Fix a bug in video_encoder_wrapper where int array was not freed properly. 2019-02-04 13:12:07 +00:00
test_jni_onload.cc Implements JavaToNativeStringMap and adds tests for native API. 2018-02-09 10:34:44 +00:00