mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
gst-validate: Use fatal-criticals by default
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2903 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5182>
This commit is contained in:
parent
8252ca0ef2
commit
f033160ea2
3 changed files with 7 additions and 3 deletions
|
@ -48,7 +48,8 @@
|
|||
#include "gst-validate-scenario.h"
|
||||
|
||||
static GstClockTime _gst_validate_report_start_time = 0;
|
||||
static GstValidateDebugFlags _gst_validate_flags = 0;
|
||||
static GstValidateDebugFlags _gst_validate_flags =
|
||||
GST_VALIDATE_FATAL_CRITICALS | GST_VALIDATE_PRINT_ISSUES;
|
||||
static GHashTable *_gst_validate_issues = NULL;
|
||||
static FILE **log_files = NULL;
|
||||
static gboolean output_is_tty = TRUE;
|
||||
|
@ -639,7 +640,7 @@ gst_validate_report_init (void)
|
|||
|
||||
/* init the debug flags */
|
||||
var = g_getenv ("GST_VALIDATE");
|
||||
if (var && strlen (var) > 0) {
|
||||
if (var) {
|
||||
_gst_validate_flags =
|
||||
g_parse_debug_string (var, keys, G_N_ELEMENTS (keys));
|
||||
}
|
||||
|
|
|
@ -103,7 +103,8 @@ gst_validate_suite (void)
|
|||
if (atexit (gst_validate_deinit) != 0) {
|
||||
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||
}
|
||||
|
||||
// Do not abort on critical issues, as this test will generate them on purpose.
|
||||
g_setenv ("GST_VALIDATE", "print_issues", TRUE);
|
||||
g_setenv ("GST_VALIDATE_REPORTING_DETAILS", "all", TRUE);
|
||||
gst_validate_init ();
|
||||
tcase_add_test (tc_chain, check_text_overrides);
|
||||
|
|
|
@ -1067,6 +1067,8 @@ gst_validate_suite (void)
|
|||
if (atexit (gst_validate_deinit) != 0) {
|
||||
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||
}
|
||||
// Do not abort on critical issues, as this test will generate them on purpose.
|
||||
g_setenv ("GST_VALIDATE", "print_issues", TRUE);
|
||||
|
||||
fake_elements_register ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue