From: Jakob Gruber Date: Wed, 18 Jul 2012 08:16:14 +0000 (+0200) Subject: tests: Correct expected output of atmega88_uart_echo X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ebaa00a9b6e58407cbc6bacd5066ca3c9bf04f97;p=simavr tests: Correct expected output of atmega88_uart_echo Carriage return generation was added back to the file handler in a26a2e43fc4b547090f3069e121713702593261d. Since the string is actually passed through uart_putchar twice, the received string has a duplicate '\r' character. --- diff --git a/tests/test_atmega88_uart_echo.c b/tests/test_atmega88_uart_echo.c index dc4640d..6ec944c 100644 --- a/tests/test_atmega88_uart_echo.c +++ b/tests/test_atmega88_uart_echo.c @@ -4,8 +4,8 @@ int main(int argc, char **argv) { tests_init(argc, argv); static const char *expected = - "Hey there, this should be received back\n" - "Received: Hey there, this should be received back\n"; + "Hey there, this should be received back\r\n" + "Received: Hey there, this should be received back\r\r\n"; tests_assert_uart_receive("atmega88_uart_echo.axf", 100000, expected, '0');