[couchdb-glib: 14/21] Add some more verbose logging on errors in test-couchdb-glib.c
- From: Mikkel Kamstrup Erlandsen <kamstrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [couchdb-glib: 14/21] Add some more verbose logging on errors in test-couchdb-glib.c
- Date: Wed, 7 Oct 2009 18:56:49 +0000 (UTC)
commit 327cb8f80372e671e7256938080608d84c5e01d5
Author: Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>
Date: Mon Oct 5 22:48:41 2009 +0200
Add some more verbose logging on errors in test-couchdb-glib.c
NOTES.kamstrup | 1 +
tests/test-couchdb-glib.c | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/NOTES.kamstrup b/NOTES.kamstrup
index 291d23a..5e2c918 100644
--- a/NOTES.kamstrup
+++ b/NOTES.kamstrup
@@ -4,6 +4,7 @@ Move typedefs to couchdb-types.h
Silent build rules
Single header includes
? Get rid of CouchDBStructField ?
+Make 'make check' run unit tests
DONE:
-----
diff --git a/tests/test-couchdb-glib.c b/tests/test-couchdb-glib.c
index 277b437..881dd86 100644
--- a/tests/test-couchdb-glib.c
+++ b/tests/test-couchdb-glib.c
@@ -31,7 +31,12 @@ test_list_databases (void)
GSList *dblist;
dblist = couchdb_list_databases (couchdb, &error);
- g_assert (error == NULL);
+ if (error != NULL) {
+ /* A critical will abort the test case */
+ g_critical ("Error listing databases: %s", error->message);
+ g_error_free (error);
+ error = NULL;
+ }
while (dblist != NULL) {
CouchDBDatabaseInfo *dbinfo;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]