From d68039ae0b4072f18653306f8e7e1696351636c8 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 16 Oct 2024 00:36:47 +0200 Subject: [PATCH] autotest: check_no_file_leaks(): hack to make it pass with 'Alpine, gcc' config --- autotest/gdrivers/hdf5.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotest/gdrivers/hdf5.py b/autotest/gdrivers/hdf5.py index 907550c77c97..48b0eede7fac 100755 --- a/autotest/gdrivers/hdf5.py +++ b/autotest/gdrivers/hdf5.py @@ -36,7 +36,9 @@ def check_no_file_leaks(): yield diff = len(gdaltest.get_opened_files()) - num_files - assert diff == 0, "Leak of file handles: %d leaked" % diff + # For some weird reason, we sometimes get less files opened than at the + # start. Cf https://github.com/OSGeo/gdal/actions/runs/11349015748/job/31564138716?pr=10896 + assert diff <= 0, "Leak of file handles: %d leaked" % diff ###############################################################################