From 9b6fb4760396c7cd3fbe354839da0d73005de341 Mon Sep 17 00:00:00 2001 From: YaacovHazan <31382944+YaacovHazan@users.noreply.github.com> Date: Thu, 31 Jul 2025 11:51:04 +0300 Subject: [PATCH] Remove string cat usage in tcl tests in order to support tcl8.5 (#14238) Co-authored-by: Mincho Paskalev --- tests/unit/hyperloglog.tcl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/unit/hyperloglog.tcl b/tests/unit/hyperloglog.tcl index 76c0a8d8d2..0edf3e78af 100644 --- a/tests/unit/hyperloglog.tcl +++ b/tests/unit/hyperloglog.tcl @@ -141,7 +141,9 @@ start_server {tags {"hll"}} { r del hll # Create a sparse-encoded HyperLogLog header - set pl [string cat "HYLL" [binary format c12 {1 0 0 0 0 0 0 0 0 0 0 0}]] + set header "HYLL" + set payload [binary format c12 {1 0 0 0 0 0 0 0 0 0 0 0}] + set pl [binary format a4a12 $header $payload] # Create an XZERO opcode with the maximum run length of 16384(2^14) set runlen [expr 16384 - 1] @@ -167,7 +169,9 @@ start_server {tags {"hll"}} { r del hll # Create a sparse-encoded HyperLogLog header - set pl [string cat "HYLL" [binary format c12 {1 0 0 0 0 0 0 0 0 0 0 0}]] + set header "HYLL" + set payload [binary format c12 {1 0 0 0 0 0 0 0 0 0 0 0}] + set pl [binary format a4a12 $header $payload] # # Create an ZERO opcode with the maximum run length of 64(2^6) set chunk [binary format c [expr {0b00000000 | 0x3f}]]