From 2307373e72460121d92d25b3e1b0594ce77605e2 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Tue, 28 Nov 2023 10:10:33 +1100 Subject: [PATCH] skip the actual performance check with ASAN The seems to greatly extend the runtime. --- t/perf/tmps.t | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/t/perf/tmps.t b/t/perf/tmps.t index ad0a6be74e60..f68e99e33b90 100644 --- a/t/perf/tmps.t +++ b/t/perf/tmps.t @@ -10,6 +10,7 @@ BEGIN { use strict; use warnings; +use Config; # test this many times to try to avoid noise from othe processes my $trial_count = 3; @@ -50,7 +51,11 @@ my $ratio = $large_size / $small_size; my $worst = $min_small * $ratio * 2; note "worst allowed $worst"; -cmp_ok($min_large, '<', $worst, - "check growing the tmps stack takes O(n) time"); - +SKIP: +{ + skip "santize greatly extends large realloc times", 1 + if "$Config{cc} $Config{ccflags}" =~ /-fsanitize/; + cmp_ok($min_large, '<', $worst, + "check growing the tmps stack takes O(n) time"); +} done_testing();