|
@@ -340,7 +340,7 @@ NS(test_main)(void *arg)
|
|
actual = log_heartbeat(0);
|
|
actual = log_heartbeat(0);
|
|
|
|
|
|
tt_int_op(actual, OP_EQ, expected);
|
|
tt_int_op(actual, OP_EQ, expected);
|
|
- tt_int_op(CALLED(logv), OP_EQ, 5);
|
|
|
|
|
|
+ tt_int_op(CALLED(logv), OP_EQ, 6);
|
|
|
|
|
|
done:
|
|
done:
|
|
NS_UNMOCK(tls_get_write_overhead_ratio);
|
|
NS_UNMOCK(tls_get_write_overhead_ratio);
|
|
@@ -439,6 +439,16 @@ NS(logv)(int severity, log_domain_mask_t domain,
|
|
tt_ptr_op(strstr(funcname, "rep_hist_log_link_protocol_counts"),
|
|
tt_ptr_op(strstr(funcname, "rep_hist_log_link_protocol_counts"),
|
|
OP_NE, NULL);
|
|
OP_NE, NULL);
|
|
break;
|
|
break;
|
|
|
|
+ case 5:
|
|
|
|
+ tt_int_op(severity, OP_EQ, LOG_NOTICE);
|
|
|
|
+ tt_int_op(domain, OP_EQ, LD_HEARTBEAT);
|
|
|
|
+ tt_str_op(format, OP_EQ, "DoS mitigation since startup:%s%s%s%s");
|
|
|
|
+ tt_str_op(va_arg(ap, char *), OP_EQ,
|
|
|
|
+ " 0 circuits killed with too many cells.");
|
|
|
|
+ tt_str_op(va_arg(ap, char *), OP_EQ, " [cc not enabled]");
|
|
|
|
+ tt_str_op(va_arg(ap, char *), OP_EQ, " [conn not enabled]");
|
|
|
|
+ tt_str_op(va_arg(ap, char *), OP_EQ, "");
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
tt_abort_msg("unexpected call to logv()"); // TODO: prettyprint args
|
|
tt_abort_msg("unexpected call to logv()"); // TODO: prettyprint args
|
|
break;
|
|
break;
|