Brian Aker 12 лет назад
Родитель
Сommit
9bf1579440
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tests/sqlite_test.cc

+ 2 - 1
tests/sqlite_test.cc

@@ -114,7 +114,8 @@ static test_return_t collection_init(void *object)
     0 };
 
   Context *test= (Context *)object;
-  assert(test);
+  test_true(test);
+  test->reset();
 
   test_truth(test->initialize(2, argv));
   test_compare(0, access(sql_file.c_str(), R_OK | W_OK ));