From: Esteban Manchado Velázquez Date: Mon, 6 Feb 2012 18:53:07 +0000 (+0100) Subject: Improve test case for read_escaped_data unit test X-Git-Tag: tor-0.2.3.13-alpha~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e44024cedcd8c1b5e7b7a801023f14d916f1aca;p=thirdparty%2Ftor.git Improve test case for read_escaped_data unit test --- diff --git a/src/test/test_util.c b/src/test/test_util.c index ee4158431e..0b685f4a99 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: