Make relative paths match the default VFS, if provided

https://github.com/espressif/esp-idf/issues/158
This commit is contained in:
Deomid Ryabkov
2017-06-23 13:07:43 +01:00
parent 3bd3640d60
commit ee5eba793f
2 changed files with 7 additions and 0 deletions

View File

@@ -197,6 +197,8 @@ TEST_CASE("vfs parses paths correctly", "[vfs]")
test_dir_opened(&inst_foobar, "/foo/bar/file");
inst_toplevel.match_path = "/tmp/foo";
test_opened(&inst_toplevel, "/tmp/foo");
inst_toplevel.match_path = "foo";
test_opened(&inst_toplevel, "foo");
TEST_ESP_OK( esp_vfs_unregister("/foo") );
TEST_ESP_OK( esp_vfs_unregister("/foo1") );