tests: ignore messages from the JVM

Reported by Giorgos Pap.
<https://lists.gnu.org/r/bug-bison/2022-08/msg00002.html>

* examples/test: Discard "Picked up _JAVA_OPTIONS:" messages.
This commit is contained in:
Akim Demaille
2022-09-03 09:13:48 +02:00
parent cfef21f5b0
commit ec9c5556d9
2 changed files with 7 additions and 3 deletions
+1
View File
@@ -82,6 +82,7 @@ Gavin Smith [email protected]
Georg Sauthoff [email protected]
George Neuner [email protected]
Gilles Espinasse [email protected]
Giorgos Pap [email protected]
Goran Uddeborg [email protected]
Guido Trentalancia [email protected]
H. Merijn Brand [email protected]
+4 -1
View File
@@ -137,9 +137,12 @@ run ()
else
cat out_eff
fi
# Ignore informational messages from the JVM.
if ! $noerr; then
sed -e 's/^/err: /g' \
sed \
-e '/^Picked up _JAVA_OPTIONS: /d' \
-e 's/Reducing stack by rule .* (line .*):/Reducing stack by rule XX (line XXX):/g' \
-e 's/^/err: /g' \
err_eff
fi
} >eff