Skip to content
Snippets Groups Projects
Commit 1ac2cc42 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#5514] Restore test ni historytest suite

parent 240f9d81
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ void HistoryTest::setUp() ...@@ -45,7 +45,7 @@ void HistoryTest::setUp()
history = new HistoryManager(); history = new HistoryManager();
} }
/*
void HistoryTest::test_create_history_path() void HistoryTest::test_create_history_path()
{ {
_debug ("-------------------- HistoryTest::test_create_history_path --------------------\n"); _debug ("-------------------- HistoryTest::test_create_history_path --------------------\n");
...@@ -55,14 +55,13 @@ void HistoryTest::test_create_history_path() ...@@ -55,14 +55,13 @@ void HistoryTest::test_create_history_path()
std::string path; std::string path;
cpath = getenv ("XDG_DATA_HOME"); cpath = getenv ("XDG_DATA_HOME");
(cpath != NULL) ? path = std::string (cpath) : path = std::string (HOMEDIR) (cpath != NULL) ? path = std::string (cpath) : path = std::string ("/") + HISTORY_SAMPLE;
+ "/.local/share/sflphone/history";
result = history->create_history_path(); result = history->create_history_path(path);
CPPUNIT_ASSERT (result == 0); CPPUNIT_ASSERT (result == 0);
CPPUNIT_ASSERT (!history->is_loaded ()); CPPUNIT_ASSERT (!history->is_loaded ());
CPPUNIT_ASSERT (history->_history_path == path); CPPUNIT_ASSERT (history->_history_path == path);
}*/ }
void HistoryTest::test_load_history_from_file() void HistoryTest::test_load_history_from_file()
{ {
......
...@@ -53,7 +53,7 @@ class HistoryTest : public CppUnit::TestCase { ...@@ -53,7 +53,7 @@ class HistoryTest : public CppUnit::TestCase {
* Use cppunit library macros to add unit test the factory * Use cppunit library macros to add unit test the factory
*/ */
CPPUNIT_TEST_SUITE (HistoryTest); 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_save_history_items_map);
CPPUNIT_TEST (test_load_history_from_file); CPPUNIT_TEST (test_load_history_from_file);
CPPUNIT_TEST (test_load_history_items_map); CPPUNIT_TEST (test_load_history_items_map);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment