Non-important spelling and style fixes.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user