vle
vle copied to clipboard
vle test test_package fail
On CentOS-6.5 the test_package test fails with my current working installation See attached the test error log as well as the cmake command done for the install (which include used dependencies version numbers)
Maybe the file /tmp/unique
did not have time to be created?
test_compress_filepath(vle::utils::ContextPtr ctx)
{
[...]
utils::Path tmpfile(utils::Path::temp_directory_path());
tmpfile /= "unique";
tmpfile.create_directory();
EnsuresNotThrow(rmt.decompress(tarfile.string(), tmpfile.string()), std::exception);
utils::Path t2{ tmpfile };
Ensures(t2.exists()); // Original failure but decompress fail too.
t2 /= uniquepath;
Ensures(t2.exists());
}
We need to test tmpfile.create_directory
:
if (tmpfile.create_directory() || tmpfile.exists_directory() || tmpfile.writeable()) {
[...]