tests: Correct expected output of atmega88_uart_echo
authorJakob Gruber <jakob.gruber@gmail.com>
Wed, 18 Jul 2012 08:16:14 +0000 (10:16 +0200)
committerJakob Gruber <jakob.gruber@gmail.com>
Wed, 18 Jul 2012 10:43:28 +0000 (12:43 +0200)
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

index dc4640d..6ec944c 100644 (file)
@@ -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');