forked from premiere/premiere-libtorrent
fix test_privacy build. fix uninitialized bit in torrent. attempt to filter output from valgrind in regression tests
This commit is contained in:
parent
1de2717fd2
commit
1ab8d2fa5c
|
@ -260,6 +260,7 @@ namespace libtorrent
|
||||||
, m_current_gauge_state(no_gauge_state)
|
, m_current_gauge_state(no_gauge_state)
|
||||||
, m_moving_storage(false)
|
, m_moving_storage(false)
|
||||||
, m_inactive(false)
|
, m_inactive(false)
|
||||||
|
, m_auto_sequential(false)
|
||||||
, m_downloaded(0xffffff)
|
, m_downloaded(0xffffff)
|
||||||
, m_last_scrape((std::numeric_limits<boost::int16_t>::min)())
|
, m_last_scrape((std::numeric_limits<boost::int16_t>::min)())
|
||||||
, m_progress_ppm(0)
|
, m_progress_ppm(0)
|
||||||
|
|
|
@ -113,10 +113,10 @@ session_proxy test_proxy(settings_pack::proxy_type_t proxy_type, int flags)
|
||||||
|
|
||||||
// since multiple sessions may exist simultaneously (because of the
|
// since multiple sessions may exist simultaneously (because of the
|
||||||
// pipelining of the tests) they actually need to use different ports
|
// pipelining of the tests) they actually need to use different ports
|
||||||
static int listen_port = 10000 + random() % 50000;
|
static int listen_port = 10000 + libtorrent::random() % 50000;
|
||||||
char iface[200];
|
char iface[200];
|
||||||
snprintf(iface, sizeof(iface), "127.0.0.1:%d", listen_port);
|
snprintf(iface, sizeof(iface), "127.0.0.1:%d", listen_port);
|
||||||
listen_port += (random() % 10) + 1;
|
listen_port += (libtorrent::random() % 10) + 1;
|
||||||
sett.set_str(settings_pack::listen_interfaces, iface);
|
sett.set_str(settings_pack::listen_interfaces, iface);
|
||||||
sett.set_bool(settings_pack::enable_dht, true);
|
sett.set_bool(settings_pack::enable_dht, true);
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,8 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit):
|
||||||
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE, cwd=test_dir)
|
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE, cwd=test_dir)
|
||||||
output = ''
|
output = ''
|
||||||
for l in p.stdout:
|
for l in p.stdout:
|
||||||
|
if 'launcher=valgrind' in options_copy and l.startswith('chase_cuOff'):
|
||||||
|
continue
|
||||||
output += l.decode('latin-1')
|
output += l.decode('latin-1')
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
Loading…
Reference in New Issue