audio: VtsHalAudioCoreModuleTargetTest: Convert a SIGSEGV into an assertion failure am: a0234940b3

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2820217

Change-Id: Ic0fad3353c15ec27cfca0ff9ffbfe4947ef9dd6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bart Van Assche 2023-11-07 22:46:39 +00:00 committed by Automerger Merge Worker
commit 95835f4901

View file

@ -446,6 +446,7 @@ class AudioCoreModuleBase {
void TearDownImpl() {
debug.reset();
ASSERT_NE(module, nullptr);
std::vector<AudioPort> finalPorts;
ASSERT_IS_OK(module->getAudioPorts(&finalPorts));
EXPECT_NO_FATAL_FAILURE(VerifyVectorsAreEqual<AudioPort>(initialPorts, finalPorts))