Exclude JPDFium native cache from temp-file regression check

This commit is contained in:
Anthony Stirling
2026-05-21 17:46:46 +01:00
parent 81dbb29be3
commit 007c8e17de
+7 -2
View File
@@ -442,8 +442,13 @@ compare_file_lists() {
echo "New files created during test:"
cat "${diff_file}.added" | sed 's/^> //'
# Check for tmp files
grep -i "tmp\|temp" "${diff_file}.added" > "${diff_file}.tmp" || true
# Check for tmp files. JPDFium's NativeLoader extracts native
# libs (libpdfium.so, libjpdfium.so, ICU, harfbuzz, etc.) into
# /tmp/.../jpdfium-<id>/ on first use and registers deleteOnExit
# so they're cleaned up at JVM shutdown; they're not leaks.
grep -i "tmp\|temp" "${diff_file}.added" \
| grep -v '/jpdfium-[0-9]\+/' \
> "${diff_file}.tmp" || true
if [ -s "${diff_file}.tmp" ]; then
echo "WARNING: Temporary files detected:"
cat "${diff_file}.tmp"