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

Unified Diff: webkit/tools/test_shell/test_shell_win.cc

Issue 8778: Collect stderr separately from stdout and append it to the layout test outp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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: webkit/tools/test_shell/test_shell_win.cc
===================================================================
--- webkit/tools/test_shell/test_shell_win.cc (revision 5177)
+++ webkit/tools/test_shell/test_shell_win.cc (working copy)
@@ -250,9 +250,12 @@
std::string md5sum = DumpImage(webFrame, params.pixel_file_name);
printf("#MD5:%s\n", md5sum.c_str());
}
- if (dumped_anything)
+ if (dumped_anything) {
printf("#EOF\n");
+ fprintf(stderr, "#EOF\n");
+ }
fflush(stdout);
+ fflush(stderr);
}
return true;
@@ -384,9 +387,11 @@
// Print a warning to be caught by the layout-test script.
// Note: the layout test driver may or may not recognize
// this as a timeout.
- puts("#TEST_TIMED_OUT\n");
- puts("#EOF\n");
+ printf("#TEST_TIMED_OUT\n");
+ printf("#EOF\n");
+ fprintf(stderr, "#EOF\n");
fflush(stdout);
+ fflush(stderr);
TerminateProcess(GetCurrentProcess(), 0);
}
// Finished normally.
« no previous file with comments | « webkit/tools/test_shell/mac/test_webview_delegate.mm ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698