From 71d7d87bf3e35463267a7f812c72f24cc8528f16 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 15 Sep 2016 17:05:08 -0400 Subject: [PATCH] Update for Beast 1.0.0-b13 --- src/ripple/app/main/Main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ripple/app/main/Main.cpp b/src/ripple/app/main/Main.cpp index d0386a104..647dad504 100644 --- a/src/ripple/app/main/Main.cpp +++ b/src/ripple/app/main/Main.cpp @@ -44,6 +44,7 @@ #include #include #include +#include #include @@ -168,12 +169,12 @@ static int runUnitTests( std::string const& argument) { using namespace beast::unit_test; - beast::unit_test::dstream dlog; - reporter r(dlog); + beast::unit_test::dstream dout{std::cout}; + reporter r{dout}; r.arg(argument); - bool const failed (r.run_each_if ( - global_suites(), match_auto (pattern))); - if (failed) + bool const anyFailed = r.run_each_if( + global_suites(), match_auto(pattern)); + if(anyFailed) return EXIT_FAILURE; return EXIT_SUCCESS; }