Rename provideBazelReporterOutput -> enableBazelEnvSupport

The new name better reflects that we are adding support for more
Bazel environment variables.
This commit is contained in:
Martin Hořeňovský 2022-10-18 11:33:42 +02:00
parent fb68bb0bd5
commit afc017ef52
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
#include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp>
namespace {
bool provideBazelReporterOutput() {
bool enableBazelEnvSupport() {
#if defined(CATCH_CONFIG_BAZEL_SUPPORT)
return true;
#elif defined(CATCH_PLATFORM_WINDOWS_UWP)
@ -86,7 +86,7 @@ namespace Catch {
}
#if !defined(CATCH_PLATFORM_WINDOWS_UWP)
if(provideBazelReporterOutput()){
if(enableBazelEnvSupport()){
// Register a JUnit reporter for Bazel. Bazel sets an environment
// variable with the path to XML output. If this file is written to
// during test, Bazel will not generate a default XML output.