clang-tidy: avoid endl

Found with performance-avoid-endl

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2024-01-18 11:12:55 -08:00 committed by Urs Fleisch
parent 99ba7635be
commit c2eb6b59b5

View File

@ -58,7 +58,7 @@ int main(int argc, char* argv[])
std::cout << "Running " << testPath;
runner.run(controller, testPath);
std::cerr << std::endl;
std::cerr << '\n';
// Print test in a compiler compatible format.
CppUnit::CompilerOutputter outputter(&result, std::cerr);
@ -80,9 +80,9 @@ int main(int argc, char* argv[])
#endif
}
catch(std::invalid_argument &e){
std::cerr << std::endl
std::cerr << '\n'
<< "ERROR: " << e.what()
<< std::endl;
<< '\n';
return 0;
}