On platforms without a file system, don't log an error when no

alternative output format is requested.

Fixes #4299

PiperOrigin-RevId: 543932266
Change-Id: Ide78c313ecf6829e4910f4a8407275c81edb3848
This commit is contained in:
Derek Mauro 2023-06-27 20:46:32 -07:00 committed by Copybara-Service
parent f269e15c5c
commit 2acd538244

View File

@ -5655,8 +5655,10 @@ void UnitTestImpl::ConfigureXmlOutput() {
<< output_format << "\" ignored.";
}
#else
if (!output_format.empty()) {
GTEST_LOG_(ERROR) << "ERROR: alternative output formats require "
<< "GTEST_HAS_FILE_SYSTEM to be enabled";
}
#endif // GTEST_HAS_FILE_SYSTEM
}