From 341a5e5f98a66d8020524be3dd4c031d1474cecd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 19 Oct 2019 22:03:41 -0500 Subject: tools: Fix LCOV --- tools/hscript-simulate/simulator.cc | 6 +++--- tools/hscript-validate/validator.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/hscript-simulate/simulator.cc b/tools/hscript-simulate/simulator.cc index e26735e..3da5cb3 100644 --- a/tools/hscript-simulate/simulator.cc +++ b/tools/hscript-simulate/simulator.cc @@ -25,7 +25,7 @@ int main(int argc, char *argv[]) { /* Default to pretty if we are using a TTY, unless -n specified. */ if(isatty(1) && isatty(2)) { - pretty = true; + pretty = true; /* LCOV_EXCL_LINE */ } opts.set(ScriptOptionFlags::Simulate); @@ -53,10 +53,10 @@ int main(int argc, char *argv[]) { std::cout << "HorizonScript Simulation Utility version 0.1.0"; reset_if_pretty(std::cout); std::cout << std::endl; - if(isatty(1)) { + if(isatty(1)) { /* LCOV_EXCL_START */ std::cout << "Copyright (c) 2019 Adélie Linux and contributors. AGPL-3.0 license." << std::endl; std::cout << std::endl; - } + } /* LCOV_EXCL_STOP */ my_script = Horizon::Script::load(installfile, opts); if(my_script == nullptr) { diff --git a/tools/hscript-validate/validator.cc b/tools/hscript-validate/validator.cc index 0d9a066..48ee62b 100644 --- a/tools/hscript-validate/validator.cc +++ b/tools/hscript-validate/validator.cc @@ -25,7 +25,7 @@ int main(int argc, char *argv[]) { /* Default to pretty if we are using a TTY, unless -n specified. */ if(isatty(1) && isatty(2)) { - pretty = true; + pretty = true; /* LCOV_EXCL_LINE */ } auto cli = ( -- cgit v1.2.3-60-g2f50