[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Allow case-insensitive match in test_tortls_debug_state_callback
commit 94669c829c10c0d6f4560fa3f48cc7e73b8e791c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Oct 6 09:40:56 2015 -0400
Allow case-insensitive match in test_tortls_debug_state_callback
---
src/test/test_tortls.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c
index 5e0b80f..be7dd9b 100644
--- a/src/test/test_tortls.c
+++ b/src/test/test_tortls.c
@@ -1834,7 +1834,8 @@ test_tortls_debug_state_callback(void *ignored)
n = snprintf(buf, 1000, "SSL %p is now in state unknown"
" state [type=32,val=45].\n", ssl);
buf[n]='\0';
- tt_str_op(mock_saved_log_at(0), OP_EQ, buf);
+ if (strcasecmp(mock_saved_log_at(0), buf))
+ tt_str_op(mock_saved_log_at(0), OP_EQ, buf);
done:
teardown_capture_of_logs(previous_log);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits