assert that the write writes the whole packet
As a side effect this should avoid an unsigned signed failure in
jenkins.
Change-Id: I8e6a9c3dbd4252d37e6325f95fc80e49ce4cc59e
diff --git a/test/decode_perf_test.cc b/test/decode_perf_test.cc
index 33399e9..c24d517 100644
--- a/test/decode_perf_test.cc
+++ b/test/decode_perf_test.cc
@@ -176,7 +176,8 @@
// Write frame header and data.
ivf_write_frame_header(outfile_, out_frames_, pkt->data.frame.sz);
- ASSERT_GT(fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile_), 0);
+ ASSERT_EQ(fwrite(pkt->data.frame.buf, 1, pkt->data.frame.sz, outfile_),
+ pkt->data.frame.sz);
}
virtual bool DoDecode() { return false; }