From 41a1d1a41610e4eea5e25ee21a16ec91f179cc51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 22 Apr 2015 09:56:55 +0100 Subject: [PATCH] tests: error out if test environment is not actually set up properly https://bugzilla.gnome.org//show_bug.cgi?id=747624 --- tests/check/generic/states.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c index fb37523fa3..4dfdec74cb 100644 --- a/tests/check/generic/states.c +++ b/tests/check/generic/states.c @@ -40,7 +40,8 @@ setup (void) GST_DEBUG ("getting elements for package %s", PACKAGE); STATE_IGNORE_ELEMENTS = g_getenv ("GST_STATE_IGNORE_ELEMENTS"); - if (!g_getenv ("GST_NO_STATE_IGNORE_ELEMENTS") && STATE_IGNORE_ELEMENTS) { + fail_unless (STATE_IGNORE_ELEMENTS != NULL, "Test environment not set up!"); + if (!g_getenv ("GST_NO_STATE_IGNORE_ELEMENTS")) { GST_DEBUG ("Will ignore element factories: '%s'", STATE_IGNORE_ELEMENTS); ignorelist = g_strsplit (STATE_IGNORE_ELEMENTS, " ", 0); }