diff --git a/tests/bufr_ecc-765.sh b/tests/bufr_ecc-765.sh index fafac9945..d4879573e 100755 --- a/tests/bufr_ecc-765.sh +++ b/tests/bufr_ecc-765.sh @@ -17,6 +17,7 @@ label="bufr_ecc-765-test" tempLog=temp.${label}.log tempSupp=temp.${label}.supp +tempFilt=temp.${label}.filt if test "x$ECCODES_TEST_WITH_VALGRIND" = "x"; then echo "Environment variable ECCODES_TEST_WITH_VALGRIND not defined. Test disabled" @@ -30,10 +31,14 @@ tools_dir=$build_dir/bin files=`cat ${data_dir}/bufr/bufr_data_files.txt` VALGRIND_OPTIONS="--error-exitcode=1 --leak-check=full --log-file=$tempLog" +cat > $tempFilt </dev/null + valgrind $VALGRIND_OPTIONS ${tools_dir}/codes_bufr_filter $tempFilt ${data_dir}/bufr/$bf >/dev/null done @@ -56,4 +61,4 @@ done # Clean up -rm -f $tempLog $tempSupp +rm -f $tempLog $tempSupp $tempFilt