From a6a2d6ced9304f67486d4ee9cb39ce672ad604e0 Mon Sep 17 00:00:00 2001 From: apnadkarni Date: Tue, 27 May 2025 05:01:08 +0000 Subject: Disable unsupported icu tests for valgrind as dl_load of icu muddies valgrind output --- tests/icu.test | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/icu.test b/tests/icu.test index a86a985..6b26107 100644 --- a/tests/icu.test +++ b/tests/icu.test @@ -7,9 +7,14 @@ if {"::tcltest" ni [namespace children]} { namespace import -force ::tcltest::* } -# Force late loading of ICU if present -catch {::tcl::unsupported::icu} -testConstraint icu [llength [info commands ::tcl::unsupported::icu::detect]] +# Disable ICU tests in the presence of valgrind since the dl_load +# allocations interfere with valgrind output and icu is anyways an +# unsupported component. +if {![testConstraint valgrind]} { + # Force late loading of ICU if present + catch {::tcl::unsupported::icu} + testConstraint icu [llength [info commands ::tcl::unsupported::icu::detect]] +} namespace eval icu { namespace path {::tcl::unsupported ::tcl::mathop} -- cgit v0.12