Skip to content

Commit

Permalink
Merge pull request #46206 from smuzaffar/alca-db-code-checks-2410
Browse files Browse the repository at this point in the history
[ALCA-DB] Applying code checks/format
  • Loading branch information
cmsbuild authored Oct 3, 2024
2 parents 01e59dd + 42fbe13 commit 180e6a5
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,22 @@
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/CompilerOutputter.h>
// #include <cppunit/TextTestProgressListener.h>
#include <cppunit/BriefTestProgressListener.h>
#include <cppunit/BriefTestProgressListener.h>

/**
* Main function used to run all tests.
* We are not using the one in #include <Utilities/Testing/interface/CppUnit_testdriver.icpp>
* because we use the BriefTestProgressListener to output the name of each test.
*/

int main( int argc, char* argv[] )
{
int main(int argc, char* argv[]) {
std::string testPath = (argc > 1) ? std::string(argv[1]) : "";
CppUnit::TextUi::TestRunner runner;
CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest( registry.makeTest() );
CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
runner.addTest(registry.makeTest());

// Outputs the name of each test when it is executed.
CppUnit::BriefTestProgressListener progress;
runner.eventManager().addListener( &progress );
runner.eventManager().addListener(&progress);
runner.run();
}


0 comments on commit 180e6a5

Please sign in to comment.