Commit ebaa00a9b6e58407cbc6bacd5066ca3c9bf04f97
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 dc4640d90e8f3b112c0ef13d9afce9d0ddba0b2b..6ec944c94e4b5589e3eab395d88d0552c0beb339 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');