From b663ab81a61299708faf65ffb01f93aadcf8cef5 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 2 Nov 2008 00:26:13 +0000 Subject: [PATCH] fix to test_web_seed --- test/test_web_seed.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_web_seed.cpp b/test/test_web_seed.cpp index 243a73cd5..2620a1929 100644 --- a/test/test_web_seed.cpp +++ b/test/test_web_seed.cpp @@ -132,7 +132,10 @@ int test_main() using namespace libtorrent; using namespace boost::filesystem; - create_directory("test_torrent"); + try { + create_directory("test_torrent"); + } catch (std::exception&) {} + char random_data[300000]; std::srand(std::time(0)); std::generate(random_data, random_data + sizeof(random_data), &std::rand);