Skip to content

Commit

Permalink
t Fix test to compile with doctest >= 2.4.2 (#168)
Browse files Browse the repository at this point in the history
And still build with doctest <= 2.4.1
  • Loading branch information
claremacrae committed Jan 6, 2021
1 parent fa12ddf commit 0eea57f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/DocTest_Tests/reporters/ReporterFactoryTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ TEST_CASE("ReporterFactory creates a Reporter given KDiff3")
ReporterFactory factory;
for (const auto& reporterName : {"KDiff3", "KDiff3Reporter"})
{
INFO(std::string("Reporter name = ") + reporterName);
auto testName = std::string("Reporter name = ") +
reporterName; // do not inline - see issue #168
INFO(testName);
auto reporter = factory.createReporter(reporterName);
if (SystemUtils::isWindowsOs())
{
Expand Down

0 comments on commit 0eea57f

Please sign in to comment.