[med-svn] [Git][med-team/libsis-jhdf5-java][master] Closing files properly in tests

Pierre Gruet gitlab at salsa.debian.org
Fri Oct 16 21:37:28 BST 2020



Pierre Gruet pushed to branch master at Debian Med / libsis-jhdf5-java


Commits:
420323c7 by Pierre Gruet at 2020-10-16T22:37:08+02:00
Closing files properly in tests

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/closing_writer_in_tests.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -2,9 +2,10 @@ libsis-jhdf5-java (19.04.0+dfsg-3) unstable; urgency=medium
 
   * Activating build-time tests again
   * Deleting useless rm in override_dh_auto_clean
+  * Solving issues in tests due to misclosed files
   * Forwarding patches
 
- -- Pierre Gruet <pgtdebian at free.fr>  Mon, 21 Sep 2020 23:03:34 +0200
+ -- Pierre Gruet <pgtdebian at free.fr>  Fri, 16 Oct 2020 21:28:47 +0200
 
 libsis-jhdf5-java (19.04.0+dfsg-2) unstable; urgency=medium
 


=====================================
debian/patches/closing_writer_in_tests.patch
=====================================
@@ -0,0 +1,23 @@
+Description: properly closing files in two tests
+Author: Pierre Gruet <pgtdebian at free.fr>
+Forwarded: brinn at ethz.ch
+Last-Update: 2020-10-16
+
+--- a/sourceTest/java/ch/systemsx/cisd/hdf5/io/HDF5DataSetRandomAccessFileTest.java
++++ b/sourceTest/java/ch/systemsx/cisd/hdf5/io/HDF5DataSetRandomAccessFileTest.java
+@@ -465,6 +465,7 @@
+         {
+             assertEquals(i, referenceArray[i], arrayRead[referenceArray.length + i]);
+         }
++        writer.close();
+         raFile.close();
+     }
+ 
+@@ -504,6 +505,7 @@
+         {
+             assertEquals(i, referenceArray[i], arrayRead[referenceArray.length + i]);
+         }
++        writer.close();
+         raFile.close();
+     }
+ 


=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ using_h5util_definitions.patch
 loading_jni_in_java_file.patch
 declaring_final_variables.patch
 adapting_h5ar_script_to_debian.patch
+closing_writer_in_tests.patch



View it on GitLab: https://salsa.debian.org/med-team/libsis-jhdf5-java/-/commit/420323c73fe1422a516ed36cf7c3ba17a356bf69

-- 
View it on GitLab: https://salsa.debian.org/med-team/libsis-jhdf5-java/-/commit/420323c73fe1422a516ed36cf7c3ba17a356bf69
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20201016/b064c5b9/attachment-0001.html>


More information about the debian-med-commit mailing list