vle-forge / vle

Virtual Laboratory Environment
http://www.vle-project.org
GNU General Public License v3.0
21 stars 22 forks source link

vle test test_package fail #324

Open eric-casellas opened 6 years ago

eric-casellas commented 6 years ago

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)

LastTest.log

logcmake.txt

quesnel commented 5 years ago

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()) {
    [...]