From 399bbd96ac1b68caf91635e2eb4fdbbb30baef3c Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Thu, 10 Nov 2016 13:03:21 -0500 Subject: Fix BUG=skia:5662 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4661 Change-Id: I5f5b10387be5d538347a3626c165cc17af154212 Reviewed-on: https://skia-review.googlesource.com/4661 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- tests/PDFDocumentTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/PDFDocumentTest.cpp') diff --git a/tests/PDFDocumentTest.cpp b/tests/PDFDocumentTest.cpp index fb3281920d..fca8496f26 100644 --- a/tests/PDFDocumentTest.cpp +++ b/tests/PDFDocumentTest.cpp @@ -61,9 +61,9 @@ static void test_abortWithFile(skiatest::Reporter* reporter) { } FILE* file = fopen(path.c_str(), "r"); - // The created file should be empty. - char buffer[100]; - REPORTER_ASSERT(reporter, fread(buffer, 1, 1, file) == 0); + // Test that only the header is written, not the full document. + char buffer[256]; + REPORTER_ASSERT(reporter, fread(buffer, 1, sizeof(buffer), file) < sizeof(buffer)); fclose(file); } -- cgit v1.2.3