]> granicus.if.org Git - libvpx/commitdiff
assert that the write writes the whole packet
authorJim Bankoski <jimbankoski@google.com>
Tue, 23 Dec 2014 16:35:26 +0000 (08:35 -0800)
committerJim Bankoski <jimbankoski@google.com>
Tue, 23 Dec 2014 16:35:26 +0000 (08:35 -0800)
As a side effect this should avoid an unsigned signed failure in
jenkins.

Change-Id: I8e6a9c3dbd4252d37e6325f95fc80e49ce4cc59e

test/decode_perf_test.cc

index 33399e95d6cb45de31b42b76d4b7f4057be1d14a..c24d5170139ae29bcd0c2279c8cf8286738cdf73 100644 (file)
@@ -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; }