aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-22 18:33:21 +0000
committerGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-22 18:33:21 +0000
commit5237b7fb0e3535d284ca18849d532f298a5e85ed (patch)
treecd25704559ab8acc0ad2f60bb2bcb291a1516b58 /tests
parent7ce564cccb246ec56427085872b2e1458fe74bd1 (diff)
Fix a test warning on some linux machines
R=sugoi@google.com Review URL: https://codereview.chromium.org/34803004 git-svn-id: http://skia.googlecode.com/svn/trunk@11910 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/DocumentTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DocumentTest.cpp b/tests/DocumentTest.cpp
index 9ca7881186..1838687c4d 100644
--- a/tests/DocumentTest.cpp
+++ b/tests/DocumentTest.cpp
@@ -79,7 +79,7 @@ static void test_file(skiatest::Reporter* reporter) {
FILE* file = fopen(path.c_str(), "r");
REPORTER_ASSERT(reporter, file != NULL);
char header[100];
- fread(header, 4, 1, file);
+ REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
REPORTER_ASSERT(reporter, strncmp(header, "%PDF", 4) == 0);
fclose(file);
}