mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Merge remote-tracking branch 'origin/maint-0.2.6'
This commit is contained in:
@@ -337,7 +337,7 @@ NS(test_main)(void *arg)
|
||||
actual = log_heartbeat(0);
|
||||
|
||||
tt_int_op(actual, OP_EQ, expected);
|
||||
tt_int_op(CALLED(logv), OP_EQ, 4);
|
||||
tt_int_op(CALLED(logv), OP_EQ, 5);
|
||||
|
||||
done:
|
||||
NS_UNMOCK(tls_get_write_overhead_ratio);
|
||||
@@ -430,6 +430,12 @@ NS(logv)(int severity, log_domain_mask_t domain,
|
||||
tt_int_op(va_arg(ap, int), OP_EQ, 1); /* handshakes assigned (NTOR) */
|
||||
tt_int_op(va_arg(ap, int), OP_EQ, 1); /* handshakes requested (NTOR) */
|
||||
break;
|
||||
case 4:
|
||||
tt_int_op(severity, OP_EQ, LOG_NOTICE);
|
||||
tt_int_op(domain, OP_EQ, LD_HEARTBEAT);
|
||||
tt_ptr_op(strstr(funcname, "rep_hist_log_link_protocol_counts"),
|
||||
OP_NE, NULL);
|
||||
break;
|
||||
default:
|
||||
tt_abort_msg("unexpected call to logv()"); // TODO: prettyprint args
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user