From 37760d60373682dc4515429e5c24b45a4f5cdbb8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Sun, 1 Oct 2023 02:38:45 -0400
Subject: [PATCH] misc: fix testFileutils (remove testCopy)

Change-Id: I2f41093e1a5ef4ec31b5e3ba1c9a79c8b9e7826c
---
 test/unitTest/fileutils/testFileutils.cpp | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/test/unitTest/fileutils/testFileutils.cpp b/test/unitTest/fileutils/testFileutils.cpp
index c0d622c78a..3917416a5b 100644
--- a/test/unitTest/fileutils/testFileutils.cpp
+++ b/test/unitTest/fileutils/testFileutils.cpp
@@ -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());
-- 
GitLab