error test: Don't test programmer error if asked not to

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2021-01-28 21:03:55 +00:00
parent c07f8a70dc
commit def3e33c36

View File

@ -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;