mirror of https://github.com/ecmwf/eccodes.git
Testing: GTS message
This commit is contained in:
parent
a14370019f
commit
b92bb98668
|
@ -134,7 +134,8 @@ static void resize(grib_accessor* a, size_t new_size)
|
||||||
|
|
||||||
grib_buffer_replace(a, (const unsigned char*)zero, new_size, 1, 0);
|
grib_buffer_replace(a, (const unsigned char*)zero, new_size, 1, 0);
|
||||||
grib_context_free(a->context, zero);
|
grib_context_free(a->context, zero);
|
||||||
grib_context_log(a->context, GRIB_LOG_DEBUG, "resize: grib_accessor_class_message.c %ld %ld %s %s\n", (long)new_size, (long)a->length, a->cclass->name, a->name);
|
grib_context_log(a->context, GRIB_LOG_DEBUG, "resize: grib_accessor_class_message %ld %ld %s %s",
|
||||||
|
(long)new_size, (long)a->length, a->cclass->name, a->name);
|
||||||
Assert(new_size == a->length);
|
Assert(new_size == a->length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,4 +45,12 @@ ${tools_dir}/gts_ls -p TT,AA,II,CCCC,YY,GG,gg,BBB $f 2> $REDIRECT > $res_ls
|
||||||
|
|
||||||
diff $ref_ls $res_ls >$REDIRECT 2> $REDIRECT
|
diff $ref_ls $res_ls >$REDIRECT 2> $REDIRECT
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Decode the key 'theMessage'
|
||||||
|
#-------------------------------------------
|
||||||
|
echo 'print "[theMessage]";' | ${tools_dir}/gts_filter - $gts_file
|
||||||
|
|
||||||
|
${tools_dir}/gts_ls -wcount=1 -p theMessage $f
|
||||||
|
|
||||||
|
# Clean up
|
||||||
rm -f $fLog $res_ls
|
rm -f $fLog $res_ls
|
||||||
|
|
Loading…
Reference in New Issue