diff --git a/test/test_ssl.cpp b/test/test_ssl.cpp index f67eb4d16..c88b15375 100644 --- a/test/test_ssl.cpp +++ b/test/test_ssl.cpp @@ -137,7 +137,8 @@ void test_ssl(int test_idx, bool use_utp) create_directory("tmp1_ssl", ec); std::ofstream file("tmp1_ssl/temporary"); - boost::intrusive_ptr t = ::create_torrent(&file, 16 * 1024, 13, false, "../ssl/root_ca_cert.pem"); + boost::intrusive_ptr t = ::create_torrent(&file + , 16 * 1024, 13, false, combine_path("..", combine_path("ssl", "root_ca_cert.pem"))); file.close(); add_torrent_params addp; @@ -484,7 +485,7 @@ void test_malicious_peer() create_directory("tmp3_ssl", ec); std::ofstream file("tmp3_ssl/temporary"); boost::intrusive_ptr t = ::create_torrent(&file - , 16 * 1024, 13, false, "ssl/root_ca_cert.pem"); + , 16 * 1024, 13, false, combine_path("..", combine_path("ssl", "root_ca_cert.pem"))); file.close(); add_torrent_params addp;