vle icon indicating copy to clipboard operation
vle copied to clipboard

vle test test_package fail

Open eric-casellas opened this issue 7 years ago • 1 comments

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

eric-casellas avatar Feb 21 '18 09:02 eric-casellas

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

quesnel avatar Feb 01 '19 14:02 quesnel