[Impeller] Always enable validation for goldens (flutter/engine#41574)

Enable validation for release builds of the golden tests.
This commit is contained in:
Brandon DeRosier
2023-04-28 10:24:18 -07:00
committed by GitHub
parent 1074fd7f89
commit af8a3a62af
3 changed files with 11 additions and 2 deletions

View File

@@ -61,7 +61,10 @@ impeller_component("aiks_unittests") {
impeller_component("aiks_unittests_golden") {
testonly = true
defines = [ "IMPELLER_GOLDEN_TESTS" ]
defines = [
"IMPELLER_GOLDEN_TESTS",
"IMPELLER_ENABLE_VALIDATION=1",
]
sources = [ "aiks_unittests.cc" ]
deps = [

View File

@@ -39,7 +39,7 @@ std::ostream& ValidationLog::GetStream() {
void ImpellerValidationBreak(const char* message) {
// Nothing to do. Exists for the debugger.
#ifdef IMPELLER_DEBUG
#ifdef IMPELLER_ENABLE_VALIDATION
std::stringstream stream;
stream << "Break on '" << __FUNCTION__
<< "' to inspect point of failure: " << message;

View File

@@ -4,6 +4,12 @@
#pragma once
#ifndef IMPELLER_ENABLE_VALIDATION
#ifdef IMPELLER_DEBUG
#define IMPELLER_ENABLE_VALIDATION 1
#endif
#endif
#include <sstream>
#include "flutter/fml/macros.h"