From fdab2e61da1e2cb56c5af5ab6b065294a989ef31 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 2 Sep 2013 21:30:58 +0000 Subject: [PATCH] fix test_storage --- test/test_storage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_storage.cpp b/test/test_storage.cpp index fd301bf7e..4129c1d99 100644 --- a/test/test_storage.cpp +++ b/test/test_storage.cpp @@ -997,7 +997,7 @@ void test_fastresume(std::string const& test_path) std::auto_ptr a = ses.pop_alert(); ptime end = time_now() + seconds(20); - while (a.get() == 0 || dynamic_cast(a.get()) == 0) + while (a.get() == 0 || alert_cast(a.get()) == 0) { if (ses.wait_for_alert(end - time_now()) == 0) { @@ -1009,7 +1009,7 @@ void test_fastresume(std::string const& test_path) std::cerr << a->message() << std::endl; } // we expect the fast resume to be rejected because the files were removed - TEST_CHECK(dynamic_cast(a.get()) != 0); + TEST_CHECK(alert_cast(a.get()) != 0); } remove_all(combine_path(test_path, "tmp1"), ec); if (ec) std::cerr << "remove_all '" << combine_path(test_path, "tmp1") @@ -1018,8 +1018,8 @@ void test_fastresume(std::string const& test_path) bool got_file_rename_alert(alert* a) { - return dynamic_cast(a) - || dynamic_cast(a); + return alert_cast(a) + || alert_cast(a); } void test_rename_file_in_fastresume(std::string const& test_path)