[tor-commits] [tor/master] Improve test case for read_escaped_data unit test

nickm at torproject.org nickm at torproject.org
Fri Mar 9 16:30:59 UTC 2012


commit 4e44024cedcd8c1b5e7b7a801023f14d916f1aca
Author: Esteban Manchado Velázquez <emanchado at demiurgo.org>
Date:   Mon Feb 6 19:53:07 2012 +0100

    Improve test case for read_escaped_data unit test
---
 src/test/test_util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index ee41584..0b685f4 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1131,12 +1131,12 @@ test_util_control_formats(void)
 {
   char *out = NULL;
   const char *inp =
-    "..This is a test\r\nof the emergency \nbroadcast\r\n..system.\r\nZ.\r\n";
+    "..This is a test\r\n.of the emergency \n..system.\r\n\rZ.\r\n";
   size_t sz;
 
   sz = read_escaped_data(inp, strlen(inp), &out);
   test_streq(out,
-             ".This is a test\nof the emergency \nbroadcast\n.system.\nZ.\n");
+             ".This is a test\nof the emergency \n.system.\n\rZ.\n");
   test_eq(sz, strlen(out));
 
  done:





More information about the tor-commits mailing list