Testing: GTS message

This commit is contained in:
Shahram Najm 2023-08-20 19:15:17 +01:00
parent a14370019f
commit b92bb98668
2 changed files with 10 additions and 1 deletions

View File

@ -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);
} }

View File

@ -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