[Piglit] [PATCH] util/wfl: remove log prints in success paths

Ilia Mirkin imirkin at alum.mit.edu
Fri Jun 27 17:51:32 PDT 2014

Commit 04c9e870 introduced some debugging prints on success that make it
clearer what's going on. However having these output for ever test seems
unnecessary. Hide them behind compilation guards.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
 tests/util/piglit-framework-gl/piglit_wfl_framework.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
index e443f1b..a63f809 100644
--- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
@@ -438,9 +438,11 @@ special_case_gl31(struct piglit_wfl_framework *wfl_fw,
 		 * promise that the returned context will have the requested
 		 * profile.  So Piglit has no need to check the profile here.
+#if 0
 		piglit_logi("Requested an %s, and received a matching "
 			    "%d.%d context\n", context_description,
 			    actual_gl_version / 10, actual_gl_version % 10);
 		return true;
@@ -451,12 +453,14 @@ special_case_gl31(struct piglit_wfl_framework *wfl_fw,
 		return true;
+#if 0
 	piglit_logi("Requested an %s, and the returned context is exactly a 3.1 "
 		    "context. But it has the wrong profile because it %s the "
 		    "GL_ARB_compatibility extension. Fallback to requesting a "
 		    "3.2 context, which is guaranteed to have the correct "
 		    "profile if context creation succeeds.",
 		    context_description, error_verb);

More information about the Piglit mailing list