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
This commit is contained in:
parent
7ce564cccb
commit
5237b7fb0e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user