From b4c8c4984d0da6818f377e56406c798d37b9147f Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Mon, 20 Jul 2015 16:17:30 +0300 Subject: [PATCH] [storage-tests] Fixed warn_unused_result in storage_tests. --- storage/storage_tests/storage_tests.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/storage/storage_tests/storage_tests.cpp b/storage/storage_tests/storage_tests.cpp index a901d467f5..096e1befb4 100644 --- a/storage/storage_tests/storage_tests.cpp +++ b/storage/storage_tests/storage_tests.cpp @@ -64,8 +64,7 @@ public: { TEST_EQUAL(0, m_currStatus, (m_countryFile)); TEST_LESS(m_currStatus, m_transitionList.size(), (m_countryFile)); - TEST_EQUAL(m_transitionList[m_currStatus], m_storage.CountryStatusEx(m_index), - (m_countryFile)); + TEST_EQUAL(m_transitionList[m_currStatus], m_storage.CountryStatusEx(m_index), (m_countryFile)); m_storage.DownloadCountry(m_index, m_files); } @@ -424,7 +423,15 @@ UNIT_TEST(StorageTest_DownloadMapAndRoutingSeparately) tests::TestMwmSet mwmSet; InitStorage(storage, runner, [&mwmSet](LocalCountryFile const & localFile) { - mwmSet.Register(localFile); + try + { + auto p = mwmSet.Register(localFile); + TEST(p.first.IsAlive(), ()); + } + catch (exception & e) + { + LOG(LERROR, ("Failed to register:", localFile, ":", e.what())); + } }); TIndex const index = storage.FindIndexByFile("Azerbaijan");