From 26cd1b1cbcb47495a527bebd5ec680bc27266a8e Mon Sep 17 00:00:00 2001 From: Mikhail Baranov Date: Sun, 26 Nov 2023 19:54:07 +0100 Subject: [PATCH] Fix "ignoring return value" warning --- src/tests/roc_audio/test_depacketizer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/roc_audio/test_depacketizer.cpp b/src/tests/roc_audio/test_depacketizer.cpp index 8e1d9fd8d3..008a663d46 100644 --- a/src/tests/roc_audio/test_depacketizer.cpp +++ b/src/tests/roc_audio/test_depacketizer.cpp @@ -728,9 +728,11 @@ TEST(depacketizer, timestamp_fract_frame_per_packet) { core::nanoseconds_t capt_ts = Now + SampleSpecs.samples_overall_2_ns(SamplesPerPacket); // 1st packet in the frame has 0 capture ts, and the next - queue.write(new_packet(encoder, StartTimestamp, 0.1f, 0)); - queue.write( - new_packet(encoder, StartTimestamp + SamplesPerPacket / NumCh, 0.1f, capt_ts)); + CHECK_EQUAL(status::StatusOK, + queue.write(new_packet(encoder, StartTimestamp, 0.1f, 0))); + CHECK_EQUAL(status::StatusOK, + queue.write(new_packet(encoder, StartTimestamp + SamplesPerPacket / NumCh, + 0.1f, capt_ts))); expect_output(dp, SamplesPerFrame, 0.1f, Now); }