tests: update uart driver api test case

Depending on test environment, termination character could
be '/r' instead of '/n'.
Enabling both possibilities.

Change-Id: I18b47e9055667e0a4f868416ee8d01226a879712
Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2017-02-21 14:44:06 +01:00 committed by Anas Nashif
commit e895d576db
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ static void uart_fifo_callback(struct device *dev)
uart_fifo_read(dev, &recvData, 1);
TC_PRINT("%c", recvData);
if (recvData == '\n') {
if ((recvData == '\n') || (recvData == '\r')) {
data_received = true;
}
}

View file

@ -49,7 +49,7 @@ static int test_poll_in(void)
TC_PRINT("%c", recvChar);
if (recvChar == '\n') {
if ((recvChar == '\n') || (recvChar == '\r')) {
break;
}
}