Testing: Fix test for valgrind

This commit is contained in:
Shahram Najm 2020-03-22 15:04:24 +00:00
parent e40f3f5c5a
commit b99927c1e0
1 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@
REDIRECT=/dev/null
# Do not fail on wrong length
$EXEC ${tools_dir}/grib_ls -7 ${data_dir}/bad.grib 2> $REDIRECT > $REDIRECT
${tools_dir}/grib_ls -7 ${data_dir}/bad.grib 2> $REDIRECT > $REDIRECT
# Do fail on wrong length
set +e
$EXEC ${tools_dir}/grib_ls ${data_dir}/bad.grib 2> $REDIRECT > $REDIRECT
${tools_dir}/grib_ls ${data_dir}/bad.grib 2> $REDIRECT > $REDIRECT
status=$?
set -e
[ $status -ne 0 ]