From 3f66a659177ad8b3e8874944d814c7ee0b89f278 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 30 Dec 2013 06:47:15 +0000 Subject: [PATCH] assert that create_torrent returns a valid torrent_info pointer --- test/test_storage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_storage.cpp b/test/test_storage.cpp index 48b97b231..86b400666 100644 --- a/test/test_storage.cpp +++ b/test/test_storage.cpp @@ -313,7 +313,8 @@ void run_elevator_test() { io_service ios; file_pool fp; - boost::intrusive_ptr ti = ::create_torrent(0, 16, 6000); + boost::intrusive_ptr ti = ::create_torrent(NULL, 16, 6000); + TEST_CHECK(ti); { error_code ec;