diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 11:12:22 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 11:12:22 +0000 |
commit | 4456645b451300aff4a763e966746e247ec5ae39 (patch) | |
tree | 0e2d93b749e073e79336601a0aee6c3306456960 /test/tree-buf.c | |
parent | 472d9ed91f2e43642edd7ae92269b76a293e004e (diff) | |
download | libhubbub-4456645b451300aff4a763e966746e247ec5ae39.tar.gz libhubbub-4456645b451300aff4a763e966746e247ec5ae39.tar.bz2 |
Allow TESTTYPE=release to be specified to build the tests with the release CFLAGS.
Add TARGET to the build paths. You should 'make distclean' before updating to this.
Add BUILD_SHARED=yes support to the *nix build
svn path=/trunk/hubbub/; revision=6478
Diffstat (limited to 'test/tree-buf.c')
-rw-r--r-- | test/tree-buf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tree-buf.c b/test/tree-buf.c index e406a45..4280a69 100644 --- a/test/tree-buf.c +++ b/test/tree-buf.c @@ -241,9 +241,11 @@ int main(int argc, char **argv) parser = setup_parser(); for (uint32_t i = 0; i < n_chunks; i++) { + ssize_t bytes_read; assert(chunks[i] <= sizeof(buf)); - fread(buf, 1, chunks[i], fp); + bytes_read = fread(buf, 1, chunks[i], fp); + assert((size_t)(bytes_read) == chunks[i]); assert(hubbub_parser_parse_chunk(parser, (uint8_t *) buf, chunks[i]) == HUBBUB_OK); |