diff --git a/tests/bufr_filter_misc.sh b/tests/bufr_filter_misc.sh index 80c68e9b5..6e2171a4f 100755 --- a/tests/bufr_filter_misc.sh +++ b/tests/bufr_filter_misc.sh @@ -564,6 +564,27 @@ set -e ${tools_dir}/codes_bufr_filter -f $fRules $f 2>>$fLog 1>>$fLog +#----------------------------------------------------------- +# Test: with invalid string key +#----------------------------------------------------------- +cat > $fRules <> $fLog +${tools_dir}/codes_bufr_filter $fRules $f 2>> $fLog 1>> $fLog +if [ $? -eq 0 ]; then + echo "bufr_filter should have failed if string key is invalid" >&2 + exit 1 +fi +set -e + + #---------------------------------------------------- # Test: format specifier for integer keys #----------------------------------------------------