We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f7eb6 commit 2d0d065Copy full SHA for 2d0d065
test/file_system_test.cpp
@@ -174,6 +174,8 @@ TEST_F(FileSystemTest, FileMove) {
174
XBT_INFO("Create a 10kB file at /dev/a/foo.txt");
175
ASSERT_NO_THROW(fs_->create_file("/dev/a/foo.txt", "10kB"));
176
ASSERT_DOUBLE_EQ(fs_->partition_by_name("/dev/a/")->get_free_space(), 90*1000);
177
+ ASSERT_DOUBLE_EQ(fs_->get_free_space_at_path("/dev/a/"), 90*1000);
178
+ ASSERT_DOUBLE_EQ(fs_->get_free_space_at_path("/dev/a/foo.txt"), 90*1000);
179
XBT_INFO("Try to move file /dev/a/foo.txt to the same path. This should work (no-op)");
180
ASSERT_NO_THROW(fs_->move_file("/dev/a/foo.txt", "/dev/a/foo.txt"));
181
XBT_INFO("Move file /dev/a/foo.txt to /dev/a/b/c/foo.txt");
0 commit comments