Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: testing/test_support.cpp

Issue 1952923002: Combine corpus runner into test_runner.py (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/test_support.cpp
diff --git a/testing/test_support.cpp b/testing/test_support.cpp
index c50edeba2da888e68b971dbca25cb8a5d2d59a88..701ebfa777ddeb9eae55fec92b7a5864acbff42e 100644
--- a/testing/test_support.cpp
+++ b/testing/test_support.cpp
@@ -77,10 +77,9 @@ void InitializeV8Common(v8::Platform** platform) {
std::unique_ptr<char, pdfium::FreeDeleter> GetFileContents(const char* filename,
size_t* retlen) {
FILE* file = fopen(filename, "rb");
- if (!file) {
- fprintf(stderr, "Failed to open: %s\n", filename);
+ if (!file)
return nullptr;
- }
+
(void)fseek(file, 0, SEEK_END);
size_t file_length = ftell(file);
if (!file_length) {
« samples/pdfium_test.cc ('K') | « samples/pdfium_test.cc ('k') | testing/tools/pngdiffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698