[niepce] since we have a Trash folder by default, adapt the the unittest.



commit 0801b4053137b0ca8df0fe1f3d6a0cafe61030d0
Author: Hub Figuiere <hub figuiere net>
Date:   Sat Oct 29 11:31:52 2011 -0700

    since we have a Trash folder by default, adapt the the unittest.

 src/engine/db/test_library.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/db/test_library.cpp b/src/engine/db/test_library.cpp
index 562137c..a77cc09 100644
--- a/src/engine/db/test_library.cpp
+++ b/src/engine/db/test_library.cpp
@@ -51,7 +51,8 @@ int test_main(int, char *[])
 
     eng::LibFolder::ListPtr l( new eng::LibFolder::List );
     lib.getAllFolders( l );
-    BOOST_CHECK( l->size() == 2 );
+    // now we have the Trash folder created at startup
+    BOOST_CHECK( l->size() == 3 );
     
     int file_id = lib.addFile(folder_added->id(), "foo/myfile", false);
     BOOST_CHECK(file_id > 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]