From a0c6bf8d922f9e7853a161b064103518dddd4612 Mon Sep 17 00:00:00 2001 From: dgp Date: Sat, 27 Jan 2018 01:38:21 +0000 Subject: Regression test for shimmering danger in [join]. --- tests/join.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/join.test b/tests/join.test index 4abe233..4aeb093 100644 --- a/tests/join.test +++ b/tests/join.test @@ -45,6 +45,11 @@ test join-3.1 {joinString is binary ok} { test join-3.2 {join is binary ok} { string length [join "a\0b a\0b a\0b"] } 11 + +test join-4.1 {shimmer segfault prevention} { + set l {0 0} + join $l $l +} {00 00} # cleanup ::tcltest::cleanupTests -- cgit v0.12