From 3d5469fded90500c2201da171ea3fe840c1abc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 11 Aug 2021 01:26:09 +0200 Subject: [PATCH] Adding LCOV_EXCL_START around exit(EXIT_FAILURE) --- lib/MySQL_Thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index 6dca0c987..a869bfe31 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -1002,8 +1002,10 @@ MySQL_Threads_Handler::MySQL_Threads_Handler() { #else if (glovars.has_debug==true) { #endif /* DEBUG */ + // LCOV_EXCL_START perror("Incompatible debugging version"); exit(EXIT_FAILURE); + // LCOV_EXCL_STOP } num_threads=0; mysql_threads=NULL; @@ -2895,9 +2897,11 @@ __run_skip_1a: // poll() timeout, try again continue; if (rc == -1) { + // LCOV_EXCL_START // error , exit perror("poll()"); exit(EXIT_FAILURE); + // LCOV_EXCL_STOP } if (__sync_add_and_fetch(&__global_MySQL_Thread_Variables_version,0) > __thread_MySQL_Thread_Variables_version) {