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

Unified Diff: gm/gm.h

Issue 12691009: gm: write all messages to stdout/stderr with "GM:" preamble to distinguish from various debug messa… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: split_out_stderr Created 7 years, 9 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: gm/gm.h
===================================================================
--- gm/gm.h (revision 8115)
+++ gm/gm.h (working copy)
@@ -16,6 +16,9 @@
#include "SkString.h"
#include "SkTRegistry.h"
+// Prefix we use for each stderr line, so we can see where the messages are coming from.
+#define GM_PREAMBLE "GM: "
+
#define DEF_GM(code) \
static skiagm::GM* SK_MACRO_APPEND_LINE(F_)(void*) { code; } \
static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_));
« no previous file with comments | « no previous file | gm/gm_expectations.h » ('j') | gm/tests/outputs/compared-against-different-pixels-images/output-expected/stderr » ('J')

Powered by Google App Engine
This is Rietveld 408576698