diff --git a/sflphone-common/test/historytest.cpp b/sflphone-common/test/historytest.cpp index ed840822190cb3b3ab88f1e98a7c9f4d40359b83..76f58eb342b55ea9dc440dc0bee902e01fec6866 100644 --- a/sflphone-common/test/historytest.cpp +++ b/sflphone-common/test/historytest.cpp @@ -45,7 +45,7 @@ void HistoryTest::setUp() history = new HistoryManager(); } -/* + void HistoryTest::test_create_history_path() { _debug ("-------------------- HistoryTest::test_create_history_path --------------------\n"); @@ -55,14 +55,13 @@ void HistoryTest::test_create_history_path() std::string path; cpath = getenv ("XDG_DATA_HOME"); - (cpath != NULL) ? path = std::string (cpath) : path = std::string (HOMEDIR) - + "/.local/share/sflphone/history"; + (cpath != NULL) ? path = std::string (cpath) : path = std::string ("/") + HISTORY_SAMPLE; - result = history->create_history_path(); + result = history->create_history_path(path); CPPUNIT_ASSERT (result == 0); CPPUNIT_ASSERT (!history->is_loaded ()); CPPUNIT_ASSERT (history->_history_path == path); -}*/ +} void HistoryTest::test_load_history_from_file() { diff --git a/sflphone-common/test/historytest.h b/sflphone-common/test/historytest.h index 96526449ff109b2d8c51ecb2d2cb11fd06473429..fac450afdfb0783b9bb770c48670501a2dc41f9b 100644 --- a/sflphone-common/test/historytest.h +++ b/sflphone-common/test/historytest.h @@ -53,7 +53,7 @@ class HistoryTest : public CppUnit::TestCase { * Use cppunit library macros to add unit test the factory */ CPPUNIT_TEST_SUITE (HistoryTest); - // CPPUNIT_TEST (test_create_history_path); + CPPUNIT_TEST (test_create_history_path); CPPUNIT_TEST (test_save_history_items_map); CPPUNIT_TEST (test_load_history_from_file); CPPUNIT_TEST (test_load_history_items_map);