int retries = 5;
while (retries > 0)
{
- string dfstr=capture_exec("df -B 1 /tmp | tail -n 1 | sed -e \"s/[^ ]* *[^ ]* [^ ]* *\\([^ ]*\\).*/\\1/\"");
+ string dfstr=capture_exec("df -P -B 1 /tmp | tail -n 1 | sed \"s/ \\+/\\\\n/g\" | sed -n 4,4p");
dfout=-1;
string_to<long long>(dfstr,dfout);
// Unlink it
BOOST_CHECK_EQUAL(true, I2n::recursive_delete(unique_dir));
BOOST_CHECK_EQUAL(false, Stat(unique_dir).is_directory());
+
+ // remove links
+ unlink("hardlink1");
+ unlink("hardlink2");
+ unlink("hardlink3");
}