summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 16:33:33 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-04-17 16:33:33 +0000
commit18b1d995cb0414550d6f10703d91b5a9d0ae00cd (patch)
tree9b80f2da325781a94ab84f42bebe3541e075789b
parent1ae4c6f0e96a7ecfc09bf39db5cf25cfe6bd5a81 (diff)
downloadlibcss-18b1d995cb0414550d6f10703d91b5a9d0ae00cd.tar.gz
libcss-18b1d995cb0414550d6f10703d91b5a9d0ae00cd.tar.bz2
And again.
svn path=/trunk/libcss/; revision=7125
-rw-r--r--test/lex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lex.c b/test/lex.c
index 6aadf28..29326d0 100644
--- a/test/lex.c
+++ b/test/lex.c
@@ -158,7 +158,8 @@ int main(int argc, char **argv)
fseek(fp, 0, SEEK_SET);
while (len >= CHUNK_SIZE) {
- fread(buf, 1, CHUNK_SIZE, fp);
+ size_t read = fread(buf, 1, CHUNK_SIZE, fp);
+ assert(read == CHUNK_SIZE);
assert(parserutils_inputstream_append(stream,
buf, CHUNK_SIZE) == PARSERUTILS_OK);
@@ -175,7 +176,8 @@ int main(int argc, char **argv)
}
if (len > 0) {
- fread(buf, 1, len, fp);
+ size_t read = fread(buf, 1, len, fp);
+ assert(read == len);
assert(parserutils_inputstream_append(stream,
buf, len) == PARSERUTILS_OK);