mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
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:
parent
367d4bab2c
commit
41a1d1a416
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ setup (void)
|
||||||
|
|
||||||
GST_DEBUG ("getting elements for package %s", PACKAGE);
|
GST_DEBUG ("getting elements for package %s", PACKAGE);
|
||||||
STATE_IGNORE_ELEMENTS = g_getenv ("GST_STATE_IGNORE_ELEMENTS");
|
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);
|
GST_DEBUG ("Will ignore element factories: '%s'", STATE_IGNORE_ELEMENTS);
|
||||||
ignorelist = g_strsplit (STATE_IGNORE_ELEMENTS, " ", 0);
|
ignorelist = g_strsplit (STATE_IGNORE_ELEMENTS, " ", 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue