diff --git a/CMakeLists.txt b/CMakeLists.txt index 39b0137396..c2ea247bcc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ option(DEBUG "Compile with debugging information" ON) option(PROFILE "Compile with profiling information" ON) option(ARMA_EXTRA_DEBUG "Compile with extra Armadillo debugging symbols." OFF) option(MATLAB_BINDINGS "Compile MATLAB bindings if MATLAB is found." OFF) -option(TEST_VERBOSE "Running test cases with verbose ouput" OFF) +option(TEST_VERBOSE "Run test cases with verbose output." OFF) # This is as of yet unused. #option(PGO "Use profile-guided optimization if not a debug build" ON) diff --git a/src/mlpack/tests/mlpack_test.cpp b/src/mlpack/tests/mlpack_test.cpp index 123b7f925f..69ac454501 100644 --- a/src/mlpack/tests/mlpack_test.cpp +++ b/src/mlpack/tests/mlpack_test.cpp @@ -24,23 +24,26 @@ * * A global fixture is expected to be implemented as a class where the class * constructor serves as a setup method and class destructor serves as teardown - * method. - * - * By default, Log::objects should have their output redirected, otherwise - * the UTF test output would be drown out by Log::Debug and Log::Warn messages. + * method. * - * For more detailed test output, set cmake flag TEST_VERBOSE=ON. + * By default, Log::objects should have their output redirected, otherwise + * the UTF test output would be drowned out by Log::Debug and Log::Warn + * messages. + * + * For more detailed test output, set the CMake flag TEST_VERBOSE=ON. */ -struct GlobalFixture { +struct GlobalFixture +{ GlobalFixture() { -#ifndef TEST_VERBOSE -#ifdef DEBUG - mlpack::Log::Debug.ignoreInput = true; -#endif - mlpack::Log::Info.ignoreInput = true; - mlpack::Log::Warn.ignoreInput = true; -#endif + #ifndef TEST_VERBOSE + #ifdef DEBUG + mlpack::Log::Debug.ignoreInput = true; + #endif + + mlpack::Log::Info.ignoreInput = true; + mlpack::Log::Warn.ignoreInput = true; + #endif } };