util: avoid NDN_THROW_NESTED in RegexRepeatMatcher
This is a workaround for an odd crash in boost::current_exception()
on Ubuntu 25.04 (see https://github.com/boostorg/exception/issues/60)
In this case the nested exception doesn't provide any useful extra
information, so we're not losing much by simply dropping it.
Also, suppress two new errors raised by lcov 2.3.
Change-Id: I4fdbf13c360e8240899cc43bcc245b7eeedc4b55
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index e6867e6..cd69a20 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -28,9 +28,9 @@
--directory . \
--include "$PWD/ndn-cxx/*" \
--exclude "$PWD/ndn-cxx/detail/nonstd/*" \
- --ignore-errors count,inconsistent \
--branch-coverage \
--rc no_exception_branch=1 \
+ --ignore-errors inconsistent,mismatch,mismatch \
--output-file build/coverage.info
genhtml \
@@ -41,5 +41,6 @@
--missed \
--show-proportion \
--title "ndn-cxx $(cat VERSION.info)" \
+ --ignore-errors inconsistent,inconsistent \
--output-directory build/lcov \
build/coverage.info
diff --git a/ndn-cxx/util/regex/regex-repeat-matcher.cpp b/ndn-cxx/util/regex/regex-repeat-matcher.cpp
index e985016..6598370 100644
--- a/ndn-cxx/util/regex/regex-repeat-matcher.cpp
+++ b/ndn-cxx/util/regex/regex-repeat-matcher.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2013-2021 Regents of the University of California.
+ * Copyright (c) 2013-2025 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -117,7 +117,7 @@
}
// std::stoul can throw invalid_argument or out_of_range, both are derived from logic_error
catch (const std::logic_error&) {
- NDN_THROW_NESTED(Error("Invalid number of repetitions '" + repeatStruct + "' in regex: " + m_expr));
+ NDN_THROW(Error("Invalid number of repetitions '" + repeatStruct + "' in regex: " + m_expr));
}
}
}