Exclude JPDFium native cache from temp-file regression check
This commit is contained in:
+7
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user