Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Klaehn
8f5d0dd7f8 Add unit tests for gpio ftdi driver. 2019-07-16 16:49:12 +02:00

View File

@ -84,6 +84,8 @@ UTEST(gpio_open, ftdi_open_success) {
ftdi_new_fake.return_val = &ftdi_ctx;
ftdi_usb_open_fake.return_val = 0;
ftdi_read_data_fake.return_val = 0;
ftdi_set_bitmode_fake.return_val = 0;
ftdi_write_data_fake.return_val = 0;
ASSERT_EQ(gpio_open(&gpio_1), EXIT_SUCCESS);
}