[mlpack] 115/207: Reverted to without any output guards
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Mar 23 17:53:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 55ec7af89f70f30bce999f5b1bf7a16b9b460e86
Author: Govind Gopakumar <govind.93 at gmail.com>
Date: Sat Mar 4 01:39:49 2017 +0530
Reverted to without any output guards
---
src/mlpack/tests/load_save_test.cpp | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/mlpack/tests/load_save_test.cpp b/src/mlpack/tests/load_save_test.cpp
index 9806971..ae3b775 100644
--- a/src/mlpack/tests/load_save_test.cpp
+++ b/src/mlpack/tests/load_save_test.cpp
@@ -28,10 +28,7 @@ BOOST_AUTO_TEST_SUITE(LoadSaveTest);
BOOST_AUTO_TEST_CASE(NoExtensionLoad)
{
arma::mat out;
- bool lflag = Log::Warn.ignoreInput;
- Log::Warn.ignoreInput = true;
BOOST_REQUIRE(data::Load("noextension", out) == false);
- Log::Warn.ignoreInput = lflag;
}
/**
@@ -40,10 +37,7 @@ BOOST_AUTO_TEST_CASE(NoExtensionLoad)
BOOST_AUTO_TEST_CASE(NoExtensionSave)
{
arma::mat out;
- bool lflag = Log::Warn.ignoreInput;
- Log::Warn.ignoreInput = true;
BOOST_REQUIRE(data::Save("noextension", out) == false);
- Log::Warn.ignoreInput = lflag;
}
/**
@@ -52,10 +46,7 @@ BOOST_AUTO_TEST_CASE(NoExtensionSave)
BOOST_AUTO_TEST_CASE(NotExistLoad)
{
arma::mat out;
- bool lflag = Log::Warn.ignoreInput;
- Log::Warn.ignoreInput = true;
BOOST_REQUIRE(data::Load("nonexistentfile_______________.csv", out) == false);
- Log::Warn.ignoreInput = lflag;
}
/**
@@ -460,10 +451,7 @@ BOOST_AUTO_TEST_CASE(LoadRawBinaryTest)
== true);
// Now reload through our interface.
- bool lflag = Log::Warn.ignoreInput;
- Log::Warn.ignoreInput = true;
BOOST_REQUIRE(data::Load("test_file.bin", test) == true);
- Log::Warn.ignoreInput = lflag;
BOOST_REQUIRE_EQUAL(test.n_rows, 1);
BOOST_REQUIRE_EQUAL(test.n_cols, 8);
@@ -656,13 +644,10 @@ BOOST_AUTO_TEST_CASE(NoHDF5Test)
test.randu(5, 5);
// Stop warnings.
- bool lflag = Log::Warn.ignoreInput;
- Log::Warn.ignoreInput = true;
BOOST_REQUIRE(data::Save("test_file.h5", test) == false);
BOOST_REQUIRE(data::Save("test_file.hdf5", test) == false);
BOOST_REQUIRE(data::Save("test_file.hdf", test) == false);
BOOST_REQUIRE(data::Save("test_file.he5", test) == false);
- Log::Warn.ignoreInput = lflag;
}
#endif
--
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