summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-19 22:03:41 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-19 22:03:41 -0500
commit341a5e5f98a66d8020524be3dd4c031d1474cecd (patch)
tree3c7685d9c68b04fe36d7c249c7054ddb94394e4e
parent02a2ad393de6cbea726514226e3419db6517307c (diff)
downloadhorizon-341a5e5f98a66d8020524be3dd4c031d1474cecd.tar.gz
horizon-341a5e5f98a66d8020524be3dd4c031d1474cecd.tar.bz2
horizon-341a5e5f98a66d8020524be3dd4c031d1474cecd.tar.xz
horizon-341a5e5f98a66d8020524be3dd4c031d1474cecd.zip
tools: Fix LCOV
-rw-r--r--tools/hscript-simulate/simulator.cc6
-rw-r--r--tools/hscript-validate/validator.cc2
2 files changed, 4 insertions, 4 deletions
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 = (