From b92bb986687e2940e11409ebbd1682f482d2e7fe Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sun, 20 Aug 2023 19:15:17 +0100 Subject: [PATCH] Testing: GTS message --- src/grib_accessor_class_message.cc | 3 ++- tests/gts_ls.sh | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/grib_accessor_class_message.cc b/src/grib_accessor_class_message.cc index 3a9ecc910..6a87d00e5 100644 --- a/src/grib_accessor_class_message.cc +++ b/src/grib_accessor_class_message.cc @@ -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_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); } diff --git a/tests/gts_ls.sh b/tests/gts_ls.sh index 313f7b6df..3de662f3e 100755 --- a/tests/gts_ls.sh +++ b/tests/gts_ls.sh @@ -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 +#------------------------------------------- +# 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