aaudio test: test whether close joins the callback
Check whether audio callback is still running after close().
Bug: 143305727
Bug: 141185837
Bug: 182954108
Test: Manual test. Enter:
Test: adb shell test_callback_race
Test: Watch to see if the test hangs.
Test: It will print PASS or FAIL if it does not hang.
Change-Id: I1c92259591cb221a8fe108c1b2a723c4f2930c57
diff --git a/media/libaaudio/tests/Android.bp b/media/libaaudio/tests/Android.bp
index f9eebd7..98e9727 100644
--- a/media/libaaudio/tests/Android.bp
+++ b/media/libaaudio/tests/Android.bp
@@ -209,9 +209,9 @@
}
cc_test {
- name: "test_stop_hang",
+ name: "test_callback_race",
defaults: ["libaaudio_tests_defaults"],
- srcs: ["test_stop_hang.cpp"],
+ srcs: ["test_callback_race.cpp"],
shared_libs: [
"libaaudio",
"libbinder",