diff --git a/audio/effect/2.0/vts/functional/VtsHalAudioEffectV2_0TargetTest.cpp b/audio/effect/2.0/vts/functional/VtsHalAudioEffectV2_0TargetTest.cpp index 18e9862c90..940bb4e5c9 100644 --- a/audio/effect/2.0/vts/functional/VtsHalAudioEffectV2_0TargetTest.cpp +++ b/audio/effect/2.0/vts/functional/VtsHalAudioEffectV2_0TargetTest.cpp @@ -450,14 +450,16 @@ TEST_F(AudioEffectHidlTest, SetAudioSource) { } TEST_F(AudioEffectHidlTest, Offload) { - description("Verify that calling Offload methods works for an effect"); + description("Verify that calling Offload method either works or returns not supported"); EffectOffloadParameter offloadParam; offloadParam.isOffload = false; offloadParam.ioHandle = static_cast(AudioHandleConsts::AUDIO_IO_HANDLE_NONE); Return ret = effect->offload(offloadParam); EXPECT_TRUE(ret.isOk()); - EXPECT_EQ(Result::OK, ret); + EXPECT_TRUE(Result::OK == ret || Result::NOT_SUPPORTED == ret) + << "Expected OK or NOT_SUPPORTED, actual value: " + << static_cast(static_cast(ret)); } TEST_F(AudioEffectHidlTest, PrepareForProcessing) {