From 1a12bed453e9c9e18bcf63754f3a309ef6a21402 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 3 Nov 2025 13:44:00 +0100 Subject: [PATCH] tools/check-errorids.sh: match errors ID in output which are not followed by newline fixes e.g. `UnionZeroInit` shown as having no test coverage --- tools/check-errorids.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check-errorids.sh b/tools/check-errorids.sh index ffef62fea42..8bd343411cc 100755 --- a/tools/check-errorids.sh +++ b/tools/check-errorids.sh @@ -23,7 +23,7 @@ echo '' echo 'no test coverage:' $SCRIPT_DIR/../cppcheck --errorlist | grep -h -o -P 'id=\"[a-zA-Z0-9_]*\"' | sed 's/\id=//' | tr -d '\"' | sort -u | \ while read -r id; do - grep -h -o -P "\[$id\]\\\\n\"" $SCRIPT_DIR/../test/*.cpp > /dev/null + grep -h -o -P "\[$id\][\\\\n]*\"" $SCRIPT_DIR/../test/*.cpp > /dev/null # shellcheck disable=SC2181 if [ $? -ne 0 ]; then echo $id