mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 08:26:14 +01:00
error test: Don't test programmer error if asked not to
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
c07f8a70dc
commit
def3e33c36
@ -1,5 +1,7 @@
|
|||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
#include "glib-private.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_overwrite (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");
|
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++)
|
for (i = 0; i < G_N_ELEMENTS (tests); i++)
|
||||||
{
|
{
|
||||||
GError *error = NULL, *error_copy = NULL;
|
GError *error = NULL, *error_copy = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user