Speculative fix for Windows tasks that sometime fail on aligned_alloc

This commit is contained in:
Slobodan Predolac 2026-05-28 18:02:59 -07:00
parent 44bb61e19e
commit 2004cf039e

View file

@ -2,15 +2,30 @@
case @abi@ in
macho)
export DYLD_FALLBACK_LIBRARY_PATH="@objroot@lib"
export DYLD_FALLBACK_LIBRARY_PATH="@abs_objroot@lib"
;;
pecoff)
export PATH="${PATH}:@objroot@lib"
export PATH="@abs_objroot@lib:${PATH}"
;;
*)
;;
esac
prepare_test_exec() {
case @abi@ in
pecoff)
test_dir=`dirname "$1"`
for dll in @abs_objroot@lib/*.dll ; do
if [ -f "${dll}" ] ; then
cp -f "${dll}" "${test_dir}/"
fi
done
;;
*)
;;
esac
}
# Make a copy of the @JEMALLOC_CPREFIX@MALLOC_CONF passed in to this script, so
# it can be repeatedly concatenated with per test settings.
export MALLOC_CONF_ALL=${@JEMALLOC_CPREFIX@MALLOC_CONF}
@ -45,10 +60,12 @@ for t in $@; do
enable_prof=@enable_prof@ \
disable_large_size_classes=@disable_large_size_classes@ \
. @srcroot@${t}.sh && \
prepare_test_exec ${t}@exe@ && \
export_malloc_conf && \
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
else
export MALLOC_CONF= && \
prepare_test_exec ${t}@exe@ && \
export_malloc_conf && \
$JEMALLOC_TEST_PREFIX ${t}@exe@ @abs_srcroot@ @abs_objroot@
fi