mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 17:52:36 +00:00
vfs: fix NULL pointer dereference in esp_vfs_unregister
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
#include "unity.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
static const char* TAG = "test_vfs_paths";
|
||||
|
||||
/* Dummy VFS implementation to check if VFS is called or not with expected path
|
||||
*/
|
||||
typedef struct {
|
||||
@@ -175,4 +173,6 @@ TEST_CASE("vfs parses paths correctly", "[vfs]")
|
||||
test_not_called(&inst_foo1, "/foo/file1");
|
||||
test_opened(&inst_foo1, "/foo1/file1");
|
||||
test_not_opened(&inst_foo1, "/foo1/file");
|
||||
TEST_ESP_OK( esp_vfs_unregister("/foo") );
|
||||
TEST_ESP_OK( esp_vfs_unregister("/foo1") );
|
||||
}
|
||||
|
Reference in New Issue
Block a user