Browse Source

unittests: Add missing check for result of vfs_opendir in tests-spiffs

pr/rotary
Joakim Nohlgård 6 years ago
parent
commit
7f9b37e2ca
  1. 1
      tests/unittests/tests-spiffs/tests-spiffs.c

1
tests/unittests/tests-spiffs/tests-spiffs.c

@ -252,6 +252,7 @@ static void tests_spiffs_readdir(void)
vfs_DIR dirp;
res = vfs_opendir(&dirp, "/test-spiffs");
TEST_ASSERT_EQUAL_INT(0, res);
vfs_dirent_t entry;
int nb_files = 0;

Loading…
Cancel
Save