- BOOST_CHECK (ext2_ls(partition.string()) == vector<string>({"disk_writer_test1", "lost+found"}));
- BOOST_CHECK (ext2_ls(partition.string() + ":disk_writer_test1") == vector<string>({"foo"}));
+ BOOST_CHECK (ext2_ls({partition.string()}) == vector<string>({"disk_writer_test1", "lost+found"}));
+
+ string const unset_date = "1-Jan-1970";
+
+ /* Check timestamp of the directory has been set */
+ auto details = ext2_ls({"-l", partition.string()});
+ BOOST_REQUIRE (details.size() >= 6);
+ BOOST_CHECK (details[5] != unset_date);
+
+ auto const dir = partition.string() + ":disk_writer_test1";
+ BOOST_CHECK (ext2_ls({dir}) == vector<string>({"foo"}));
+
+ /* Check timestamp of foo */
+ details = ext2_ls({"-l", dir});
+ BOOST_REQUIRE (details.size() >= 6);
+ BOOST_CHECK (details[5] != unset_date);