searchengine/cpix/tsrc/cpixunittest/src/testutils.cpp
changeset 3 ae3f1779f6da
parent 0 671dee74050a
child 14 8bd192d47aaa
--- a/searchengine/cpix/tsrc/cpixunittest/src/testutils.cpp	Fri May 14 16:57:37 2010 +0300
+++ b/searchengine/cpix/tsrc/cpixunittest/src/testutils.cpp	Thu May 27 13:59:44 2010 +0300
@@ -34,6 +34,8 @@
 
 #include "testutils.h"
 
+#include "std_log_result.h"
+
 std::wstring GetItemId(int itemIndex)
 {
     using namespace std;
@@ -220,6 +222,7 @@
                       idxDbPath(),
                       qualBaseAppClass(),
                       report);
+            assert_failed = 1;
         }
 
     schemaId_ = addSchema();
@@ -283,6 +286,7 @@
 	
     if ( cpix_Failed( idxDb_ ) )
     {
+        assert_failed = 1;
 		ITK_PANIC("Could not flush idx db '%s' for '%s'",
 				  idxDbPath(),
 				  qualBaseAppClass());
@@ -488,6 +492,10 @@
                     result,
                     docUid.c_str());
         }
+    else
+        {
+            assert_failed = 1;
+        }
 }
 
 
@@ -577,7 +585,7 @@
                        failureStr,
                        id,
                        report);
-
+            assert_failed = 1;
             cpix_ClearError(idxDb());
         }
 }