summaryrefslogtreecommitdiffstats
path: root/tests/ingen_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-06-04 15:08:23 -0400
committerDavid Robillard <d@drobilla.net>2024-06-04 15:08:23 -0400
commitd7aa17453b84ecd2bf3d8eb411858d174c963226 (patch)
treee2dc4adfd011df06cb52bb257b57f0094d14cfed /tests/ingen_test.cpp
parent77539f23febc306f3ae444df899ee4fa59b5aa17 (diff)
downloadingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.tar.gz
ingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.tar.bz2
ingen-d7aa17453b84ecd2bf3d8eb411858d174c963226.zip
Avoid std::endl
Diffstat (limited to 'tests/ingen_test.cpp')
-rw-r--r--tests/ingen_test.cpp23
1 files changed, 8 insertions, 15 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index b1705dfa..6f7e2588 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -57,7 +57,7 @@ void
ingen_try(bool cond, const char* msg)
{
if (!cond) {
- std::cerr << "ingen: Error: " << msg << std::endl;
+ std::cerr << "ingen: Error: " << msg << "\n";
world.reset();
exit(EXIT_FAILURE);
}
@@ -80,7 +80,7 @@ run(int argc, char** argv)
world = std::make_unique<World>(nullptr, nullptr, nullptr);
world->load_configuration(argc, argv);
} catch (const std::exception& e) {
- std::cerr << "ingen: " << e.what() << std::endl;
+ std::cerr << "ingen: " << e.what() << "\n";
return EXIT_FAILURE;
}
@@ -89,8 +89,7 @@ run(int argc, char** argv)
const Atom& execute = world->conf().option("execute");
if (!load.is_valid() || !execute.is_valid()) {
std::cerr
- << "Usage: ingen_test --load START_GRAPH --execute COMMANDS_FILE"
- << std::endl;
+ << "Usage: ingen_test --load START_GRAPH --execute COMMANDS_FILE\n";
return EXIT_FAILURE;
}
@@ -100,16 +99,12 @@ run(int argc, char** argv)
const FilePath run_path = real_file_path(static_cast<const char*>(execute.get_body()));
if (load_path.empty()) {
- std::cerr << "error: initial graph '" << load_path << "' does not exist"
- << std::endl;
-
+ std::cerr << "error: initial graph '" << load_path << "' does not exist\n";
return EXIT_FAILURE;
}
if (run_path.empty()) {
- std::cerr << "error: command file '" << run_path << "' does not exist"
- << std::endl;
-
+ std::cerr << "error: command file '" << run_path << "' does not exist\n";
return EXIT_FAILURE;
}
@@ -125,9 +120,7 @@ run(int argc, char** argv)
// Load graph
if (!world->parser()->parse_file(*world, *world->interface(), load_path)) {
- std::cerr << "error: failed to load initial graph " << load_path
- << std::endl;
-
+ std::cerr << "error: failed to load initial graph " << load_path << "\n";
return EXIT_FAILURE;
}
world->engine()->flush_events(std::chrono::milliseconds(20));
@@ -180,7 +173,7 @@ run(int argc, char** argv)
#if 0
const LV2_Atom* atom = forge.atom();
- cerr << "READ " << atom->size << " BYTES" << endl;
+ cerr << "READ " << atom->size << " BYTES\n";
cerr << sratom_to_turtle(
sratom,
&world->uri_map().urid_unmap_feature()->urid_unmap,
@@ -249,7 +242,7 @@ main(int argc, char** argv)
return ingen::test::run(argc, argv);
} catch (const std::exception& e) {
- std::cerr << "ingen: " << e.what() << std::endl;
+ std::cerr << "ingen: " << e.what() << "\n";
return EXIT_FAILURE;
}
}