From: Wiktor Gerstenstein Date: Tue, 23 Jun 2020 16:32:50 +0000 (+0200) Subject: test bugfix: check invalid function results in SPI tests X-Git-Tag: accepted/tizen/6.0/unified/20201030.121328~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=830b0107b753ebd21630658826f6ec0939edb98d;p=platform%2Fcore%2Fapi%2Fperipheral-io.git test bugfix: check invalid function results in SPI tests Change-Id: I5b254a97e0df869666420c031fe10e122961d79c --- diff --git a/test/src/test_peripheral_spi.c b/test/src/test_peripheral_spi.c index 1969138..36f607e 100644 --- a/test/src/test_peripheral_spi.c +++ b/test/src/test_peripheral_spi.c @@ -431,7 +431,7 @@ int test_peripheral_io_spi_peripheral_spi_set_bit_order_p2(void) return ret; ret = peripheral_spi_set_bit_order(spi_h, PERIPHERAL_SPI_BIT_ORDER_LSB); - if (ret != PERIPHERAL_ERROR_IO_ERROR) { + if (ret != PERIPHERAL_ERROR_NONE) { peripheral_spi_close(spi_h); return ret; } @@ -587,7 +587,7 @@ int test_peripheral_io_spi_peripheral_spi_set_bits_per_word_n2(void) return ret; ret = peripheral_spi_set_bits_per_word(spi_h, SPI_BITS_PER_WORD_INVALID); - if (ret != PERIPHERAL_ERROR_IO_ERROR) { + if (ret != PERIPHERAL_ERROR_INVALID_PARAMETER) { peripheral_spi_close(spi_h); return ret; }