Test coverage: make LCOV ignore sig_handler and OOM check
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index a36ffce8d3f78e1f1117fb4af17e65701c005459..8acae39e43bc2b94aea85d3147643a2f995dcf04 100644 (file)
--- a/main.c
+++ b/main.c
@@ -37,6 +37,8 @@ bool oldstyle = false;
 bool editline = true;
 bool prompt = true;
 
+// LCOV_EXCL_START
+// exclude from coverage analysis because it requires interactivity to test
 static void sig_handler(int signo)
 {
     if (signo == SIGINT) {
@@ -45,6 +47,7 @@ static void sig_handler(int signo)
     }
     exit(0);
 }
+// LCOV_EXCL_STOP
 
 /*
  * MAIN PROGRAM