From: Jim Bankoski Date: Tue, 23 Dec 2014 16:35:26 +0000 (-0800) Subject: assert that the write writes the whole packet X-Git-Tag: v1.4.0~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8619274ea384500abeb698f832815ca892266954;p=libvpx 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 33399e95d..c24d51701 100644 --- a/test/decode_perf_test.cc +++ b/test/decode_perf_test.cc @@ -176,7 +176,8 @@ class VP9NewEncodeDecodePerfTest : // 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; }