From ebaa00a9b6e58407cbc6bacd5066ca3c9bf04f97 Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Wed, 18 Jul 2012 10:16:14 +0200 Subject: [PATCH] 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. --- tests/test_atmega88_uart_echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.39.5