[gjs] tests: Make return code error more informative
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] tests: Make return code error more informative
- Date: Thu, 23 Sep 2010 18:16:56 +0000 (UTC)
commit ae284842c653c79b3ac604c6a253799eb744616a
Author: Colin Walters <walters verbum org>
Date: Mon Sep 20 13:54:06 2010 -0400
tests: Make return code error more informative
https://bugzilla.gnome.org/show_bug.cgi?id=630413
test/gjs-unit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/test/gjs-unit.c b/test/gjs-unit.c
index 915909d..eb4ae3b 100644
--- a/test/gjs-unit.c
+++ b/test/gjs-unit.c
@@ -89,7 +89,8 @@ 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]