mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fail when spatch can't process source code
Sometimes spatch fails to process the source code:
EXN: Failure("replacement: node 80: {7[1,2,30,31,32] in isc__nm_base64_to_base64url reachable by inconsistent control-flow paths") in ./lib/isc/netmgr/http.c
This commit is contained in:
parent
a27275d246
commit
44d1a97870
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ run_spatch() {
|
|||
echo "Applying semantic patch $spatch..."
|
||||
spatch --jobs "${TEST_PARALLEL_JOBS:-1}" --sp-file "$spatch" --use-gitgrep --dir "." --include-headers $spatchargs >>"$patch" 2>cocci.stderr
|
||||
cat cocci.stderr
|
||||
if grep -q -e "parse error" cocci.stderr; then
|
||||
if grep -q -e "parse error" -e "EXN: Failure" cocci.stderr; then
|
||||
ret=1
|
||||
fi
|
||||
if [ "$(wc <"$patch" -l)" -gt "0" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue