[gjs/wip/xulrunner-1.9.3-rebase5: 8/26] tests: Make return code error more informative
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/xulrunner-1.9.3-rebase5: 8/26] tests: Make return code error more informative
- Date: Thu, 23 Sep 2010 00:04:43 +0000 (UTC)
commit 46514df04df22f73606c9a59968afd732640c10b
Author: Colin Walters <walters verbum org>
Date: Mon Sep 20 13:54:06 2010 -0400
tests: Make return code error more informative
test/gjs-unit.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/test/gjs-unit.c b/test/gjs-unit.c
index 648006b..d349df0 100644
--- a/test/gjs-unit.c
+++ b/test/gjs-unit.c
@@ -89,7 +89,9 @@ test(GjsTestJSFixture *fix,
if (!success)
g_error("%s", error->message);
g_assert(error == NULL);
- g_assert_cmpint(code, ==, 0);
+ if (code != 0) {
+ g_error("Test script returned code %d; assertions will be in gjs.log", code);
+ }
}
static GSList *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]