summaryrefslogtreecommitdiff
path: root/tests/testing-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testing-helper.c')
-rw-r--r--tests/testing-helper.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testing-helper.c b/tests/testing-helper.c
index 4e00fbe..7c2192c 100644
--- a/tests/testing-helper.c
+++ b/tests/testing-helper.c
@@ -49,6 +49,18 @@ test_messages (void)
}
static void
+test_assertion_failure_true (void)
+{
+ g_assert_true (null != NULL);
+}
+
+static void
+test_assertion_failure_false (void)
+{
+ g_assert_false (null == NULL);
+}
+
+static void
test_assertion_failure_nonnull (void)
{
g_assert_nonnull (null);
@@ -303,6 +315,8 @@ main (int argc,
{
/* Use -p to select a specific one of these */
#define T(x) g_test_add_func ("/assertion-failure/" #x, test_assertion_failure_ ## x)
+ T (true);
+ T (false);
T (nonnull);
T (null);
T (mem_null_nonnull);