diff --git a/test/leak/sharp.supp b/test/leak/sharp.supp index 3dd13965..d816984f 100644 --- a/test/leak/sharp.supp +++ b/test/leak/sharp.supp @@ -232,6 +232,14 @@ fun:XML_ParseBuffer obj:*/libfontconfig.so.* } +{ + leak_fontconfig_XML_ParseBuffer_indirect + Memcheck:Leak + match-leak-kinds: indirect + ... + fun:XML_ParseBuffer + obj:*/libfontconfig.so.* +} { leak_fontconfig_FcInitLoadConfigAndFonts Memcheck:Leak @@ -242,6 +250,36 @@ ... fun:FcInitLoadConfigAndFonts } +{ + leak_fontconfig_FcDefaultSubstitute + Memcheck:Leak + match-leak-kinds: indirect + fun:calloc + ... + fun:FcDefaultSubstitute + ... + fun:pango_itemize_with_base_dir + ... + fun:pango_layout_get_pixel_extents + fun:vips_text_get_extents +} +{ + leak_fontconfig_FcLangSetCreate + Memcheck:Leak + match-leak-kinds: indirect + fun:malloc + fun:FcLangSetCreate + fun:FcLangSetCopy + fun:FcValueSave + ... + fun:FcFontRenderPrepare + fun:FcFontMatch + ... + fun:pango_itemize_with_base_dir + ... + fun:pango_layout_get_pixel_extents + fun:vips_text_get_extents +} # heif { diff --git a/test/unit/beforeEach.js b/test/unit/beforeEach.js index 932cb8d7..9d055a0b 100644 --- a/test/unit/beforeEach.js +++ b/test/unit/beforeEach.js @@ -4,7 +4,7 @@ const detectLibc = require('detect-libc'); const sharp = require('../../'); const libcFamily = detectLibc.familySync(); -const usingCache = libcFamily !== detectLibc.MUSL; +const usingCache = !(process.env.G_DEBUG || libcFamily === detectLibc.MUSL); const usingSimd = !(process.env.G_DEBUG || process.env.VIPS_NOVECTOR); const concurrency = process.env.VIPS_CONCURRENCY || (libcFamily === detectLibc.MUSL || process.arch === 'arm' ? 1 : undefined);