diff options
author | Yuri Gorshenin <y@maps.me> | 2015-07-20 16:17:30 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:52 +0300 |
commit | b4c8c4984d0da6818f377e56406c798d37b9147f (patch) | |
tree | 7911afe469d67f5cdacbbc5cb94eb6e5dee009b6 /storage | |
parent | 47e59d6baae56e00c9b5f82d5083f88f88f76eec (diff) |
[storage-tests] Fixed warn_unused_result in storage_tests.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage_tests/storage_tests.cpp | 13 |
1 files 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"); |