]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Allow case-insensitive match in test_tortls_debug_state_callback
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Oct 2015 13:40:56 +0000 (09:40 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Oct 2015 13:40:56 +0000 (09:40 -0400)
src/test/test_tortls.c

index 5e0b80f54dfb6912fd4020137ce6cd4531dd59f2..be7dd9b92ef025f4c1e9320a2286cb985cf4e464 100644 (file)
@@ -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);