intel/compiler/test: use TEST_DEBUG env var consistently

Other tests use the same environment variable to decide whether they
should print debugging information.

Will quiet Coverity's "'Constant' variable guards dead code".

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>
This commit is contained in:
Marcin Ślusarz
2020-07-30 16:18:37 +02:00
committed by Marge Bot
parent 289cb6b59a
commit c7a9dc76dc
3 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ void copy_propagation_test::SetUp()
static void
copy_propagation(vec4_visitor *v)
{
bool print = false;
const bool print = getenv("TEST_DEBUG");
if (print) {
fprintf(stderr, "instructions before:\n");

View File

@@ -103,7 +103,7 @@ void dead_code_eliminate_test::SetUp()
static void
dead_code_eliminate(vec4_visitor *v)
{
bool print = false;
const bool print = getenv("TEST_DEBUG");
if (print) {
fprintf(stderr, "instructions before:\n");

View File

@@ -108,7 +108,7 @@ void register_coalesce_test::SetUp()
static void
_register_coalesce(vec4_visitor *v, const char *func)
{
bool print = false;
const bool print = getenv("TEST_DEBUG");
if (print) {
printf("%s: instructions before:\n", func);