Alicia Boya García 2023-08-14 15:36:16 +02:00 committed by GStreamer Marge Bot
parent 8252ca0ef2
commit f033160ea2
3 changed files with 7 additions and 3 deletions

View file

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

View file

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

View file

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