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

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

Change-Id: If5dab041e881114da7ba3c61f2de0f7552397d73
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 23:14:33 +00:00
committed by Automerger Merge Worker

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))