Read written data to check that everything is fine.

This commit is contained in:
Romain Tartiere 2011-04-23 15:13:45 +00:00
parent 573fc1b778
commit 1c7b7dcbe4

View file

@ -855,6 +855,10 @@ test_mifare_desfire_ev1_aes_write_data_encyphered (void)
res = mifare_desfire_write_data (tag, 9, 0, 5, "Hello"); res = mifare_desfire_write_data (tag, 9, 0, 5, "Hello");
cut_assert_equal_int (5, res, cut_message ("Wrong value returned")); cut_assert_equal_int (5, res, cut_message ("Wrong value returned"));
uint8_t data[30];
res = mifare_desfire_read_data (tag, 9, 0, 0, data);
cut_assert_equal_int (7, res, cut_message ("Can't read written data"));
res = mifare_desfire_select_application (tag, NULL); res = mifare_desfire_select_application (tag, NULL);
cut_assert_success ("mifare_desfire_select_application()"); cut_assert_success ("mifare_desfire_select_application()");