Testing: grib_dump error conditions

This commit is contained in:
shahramn 2024-10-09 21:47:07 +01:00
parent 4e11d8b7dd
commit 464ee10d76
1 changed files with 7 additions and 0 deletions

View File

@ -169,6 +169,13 @@ file=$data_dir/sample.grib2
${tools_dir}/grib_dump -p nonexist $file > $temp 2>&1
grep -q "Key/value not found" $temp
# Invalid options
set +e
${tools_dir}/grib_dump -jOD $file > $temp 2>&1
status=$?
set -e
[ $status -ne 0 ]
# Unreadable message
#-----------------------------------------------------------