From 8619274ea384500abeb698f832815ca892266954 Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Tue, 23 Dec 2014 08:35:26 -0800 Subject: assert that the write writes the whole packet As a side effect this should avoid an unsigned signed failure in jenkins. Change-Id: I8e6a9c3dbd4252d37e6325f95fc80e49ce4cc59e --- test/decode_perf_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3