Skip to content
Snippets Groups Projects
Commit 37760d60 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

misc: fix testFileutils (remove testCopy)

Change-Id: I2f41093e1a5ef4ec31b5e3ba1c9a79c8b9e7826c
parent 3505c106
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,6 @@ private:
void testIsDirectoryWritable();
void testGetCleanPath();
void testFullPath();
void testCopy();
CPPUNIT_TEST_SUITE(FileutilsTest);
CPPUNIT_TEST(testPath);
......@@ -54,7 +53,6 @@ private:
CPPUNIT_TEST(testIsDirectoryWritable);
CPPUNIT_TEST(testGetCleanPath);
CPPUNIT_TEST(testFullPath);
CPPUNIT_TEST(testCopy);
CPPUNIT_TEST_SUITE_END();
static constexpr auto tmpFileName = "temp_file";
......@@ -147,16 +145,6 @@ FileutilsTest::testFullPath()
CPPUNIT_ASSERT(getFullPath(NON_EXISTANT_PATH_BASE, "test").compare(NON_EXISTANT_PATH) == 0);
}
void
FileutilsTest::testCopy()
{
CPPUNIT_ASSERT(std::filesystem::is_regular_file(EXISTANT_FILE));
CPPUNIT_ASSERT(!std::filesystem::is_regular_file(NON_EXISTANT_PATH_BASE));
CPPUNIT_ASSERT(copy(EXISTANT_FILE, NON_EXISTANT_PATH_BASE));
CPPUNIT_ASSERT(std::filesystem::is_regular_file(NON_EXISTANT_PATH_BASE));
CPPUNIT_ASSERT(dhtnet::fileutils::removeAll(NON_EXISTANT_PATH_BASE) == 0);
}
}}} // namespace jami::test::fileutils
RING_TEST_RUNNER(jami::fileutils::test::FileutilsTest::name());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment