[glib/wip/smcv/address-sanitizer: 14/20] error test: Don't test programmer error if asked not to
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/smcv/address-sanitizer: 14/20] error test: Don't test programmer error if asked not to
- Date: Fri, 29 Jan 2021 20:29:35 +0000 (UTC)
commit 8cd6435fe17b10e395a0c76479e9f622c935db76
Author: Simon McVittie <smcv collabora com>
Date: Thu Jan 28 21:03:55 2021 +0000
error test: Don't test programmer error if asked not to
Signed-off-by: Simon McVittie <smcv collabora com>
glib/tests/error.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/glib/tests/error.c b/glib/tests/error.c
index 4f4c6b3c7..48f480222 100644
--- a/glib/tests/error.c
+++ b/glib/tests/error.c
@@ -1,5 +1,7 @@
#include <glib.h>
+#include "glib-private.h"
+
static void
test_overwrite (void)
{
@@ -120,6 +122,12 @@ test_new_valist_invalid_va (gpointer dummy,
g_test_summary ("Test that g_error_new_valist() rejects invalid input");
+ if (!g_test_undefined ())
+ {
+ g_test_skip ("Not testing response to programmer error");
+ return;
+ }
+
for (i = 0; i < G_N_ELEMENTS (tests); i++)
{
GError *error = NULL, *error_copy = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]