[mlpack] 103/149: Don't test on Armadillo 4.300.0 through 4.400.x because there is a bug in Mat::load(istream&) which prevents loading from type hdf5_binary. (The bug is simply the omission of the hdf5_binary case from the switch() statement actually.)

Barak A. Pearlmutter barak+git at pearlmutter.net
Sat May 2 09:11:14 UTC 2015


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit 8ce16e5e54e4daa00509076f84249369e6291088
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Nov 18 22:55:23 2014 +0000

    Don't test on Armadillo 4.300.0 through 4.400.x because there is a bug in
    Mat::load(istream&) which prevents loading from type hdf5_binary.  (The bug is
    simply the omission of the hdf5_binary case from the switch() statement
    actually.)
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17381 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/tests/load_save_test.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/tests/load_save_test.cpp b/src/mlpack/tests/load_save_test.cpp
index d1c6ff1..d889dea 100644
--- a/src/mlpack/tests/load_save_test.cpp
+++ b/src/mlpack/tests/load_save_test.cpp
@@ -378,7 +378,9 @@ BOOST_AUTO_TEST_CASE(SavePGMBinaryTest)
   remove("test_file.pgm");
 }
 
-#ifdef ARMA_USE_HDF5
+#if defined(ARMA_USE_HDF5) && (ARMA_VERSION_MAJOR == 3 \
+    || (ARMA_VERSION_MAJOR == 4 && (ARMA_VERSION_MINOR < 300 \
+    ||  ARMA_VERSION_MINOR > 400)))
 /**
  * Make sure load as HDF5 is successful.
  */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list