mirror of
https://github.com/catchorg/Catch2.git
synced 2025-02-16 19:43:28 +01:00
Rename provideBazelReporterOutput -> enableBazelEnvSupport
The new name better reflects that we are adding support for more Bazel environment variables.
This commit is contained in:
parent
fb68bb0bd5
commit
afc017ef52
@ -15,7 +15,7 @@
|
|||||||
#include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp>
|
#include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
bool provideBazelReporterOutput() {
|
bool enableBazelEnvSupport() {
|
||||||
#if defined(CATCH_CONFIG_BAZEL_SUPPORT)
|
#if defined(CATCH_CONFIG_BAZEL_SUPPORT)
|
||||||
return true;
|
return true;
|
||||||
#elif defined(CATCH_PLATFORM_WINDOWS_UWP)
|
#elif defined(CATCH_PLATFORM_WINDOWS_UWP)
|
||||||
@ -86,7 +86,7 @@ namespace Catch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(CATCH_PLATFORM_WINDOWS_UWP)
|
#if !defined(CATCH_PLATFORM_WINDOWS_UWP)
|
||||||
if(provideBazelReporterOutput()){
|
if(enableBazelEnvSupport()){
|
||||||
// Register a JUnit reporter for Bazel. Bazel sets an environment
|
// Register a JUnit reporter for Bazel. Bazel sets an environment
|
||||||
// variable with the path to XML output. If this file is written to
|
// variable with the path to XML output. If this file is written to
|
||||||
// during test, Bazel will not generate a default XML output.
|
// during test, Bazel will not generate a default XML output.
|
||||||
|
Loading…
Reference in New Issue
Block a user