aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFDocumentTest.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-11-10 13:03:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-10 18:39:31 +0000
commit399bbd96ac1b68caf91635e2eb4fdbbb30baef3c (patch)
treec7506dec7f04a6f72bcb6d01da29387950622767 /tests/PDFDocumentTest.cpp
parent9c7edb8311409a141b0dc1d5e480c68c629f1997 (diff)
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 <halcanary@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tests/PDFDocumentTest.cpp')
-rw-r--r--tests/PDFDocumentTest.cpp6
1 files changed, 3 insertions, 3 deletions
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);
}