tests: error out if test environment is not actually set up properly

https://bugzilla.gnome.org//show_bug.cgi?id=747624
This commit is contained in:
Tim-Philipp Müller 2015-04-22 09:56:55 +01:00
parent 367d4bab2c
commit 41a1d1a416

View file

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