diff --git a/examples/C/grib_ensemble_index.sh b/examples/C/grib_ensemble_index.sh index b21379669..c78ac14f8 100755 --- a/examples/C/grib_ensemble_index.sh +++ b/examples/C/grib_ensemble_index.sh @@ -11,3 +11,13 @@ input="../../data/index.grib" ${examples_dir}c_grib_ensemble_index $input + +# ECC-378: Empty input file +temp=temp_index.empty.grib +touch $temp +set +e +${examples_dir}c_grib_ensemble_index $temp 2>/dev/null +status=$? +set -e +[ $status -ne 0 ] +rm -f $temp