mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
validate: tests: call gst_validate_deinit()
gst_validate_deinit() needs to be called when the test is done to remove false positives when using the leaks tracer. https://bugzilla.gnome.org/show_bug.cgi?id=777977 Differential Revision: https://phabricator.freedesktop.org/D1630
This commit is contained in:
parent
bc3e9505ea
commit
4881013d66
4 changed files with 16 additions and 0 deletions
|
@ -99,6 +99,10 @@ gst_validate_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("monitoring");
|
TCase *tc_chain = tcase_create ("monitoring");
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
||||||
|
if (atexit (gst_validate_deinit) != 0) {
|
||||||
|
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||||
|
}
|
||||||
|
|
||||||
tcase_add_test (tc_chain, monitors_added);
|
tcase_add_test (tc_chain, monitors_added);
|
||||||
tcase_add_test (tc_chain, monitors_cleanup);
|
tcase_add_test (tc_chain, monitors_cleanup);
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,10 @@ gst_validate_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("registry");
|
TCase *tc_chain = tcase_create ("registry");
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
||||||
|
if (atexit (gst_validate_deinit) != 0) {
|
||||||
|
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||||
|
}
|
||||||
|
|
||||||
g_setenv ("GST_VALIDATE_REPORTING_DETAILS", "all", TRUE);
|
g_setenv ("GST_VALIDATE_REPORTING_DETAILS", "all", TRUE);
|
||||||
gst_validate_init ();
|
gst_validate_init ();
|
||||||
tcase_add_test (tc_chain, check_text_overrides);
|
tcase_add_test (tc_chain, check_text_overrides);
|
||||||
|
|
|
@ -1037,6 +1037,10 @@ gst_validate_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("padmonitor");
|
TCase *tc_chain = tcase_create ("padmonitor");
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
||||||
|
if (atexit (gst_validate_deinit) != 0) {
|
||||||
|
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||||
|
}
|
||||||
|
|
||||||
fake_elements_register ();
|
fake_elements_register ();
|
||||||
|
|
||||||
tcase_add_test (tc_chain, buffer_before_segment);
|
tcase_add_test (tc_chain, buffer_before_segment);
|
||||||
|
|
|
@ -257,6 +257,10 @@ gst_validate_suite (void)
|
||||||
TCase *tc_chain = tcase_create ("reporting");
|
TCase *tc_chain = tcase_create ("reporting");
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
|
||||||
|
if (atexit (gst_validate_deinit) != 0) {
|
||||||
|
GST_ERROR ("failed to set gst_validate_deinit as exit function");
|
||||||
|
}
|
||||||
|
|
||||||
fake_elements_register ();
|
fake_elements_register ();
|
||||||
|
|
||||||
tcase_add_test (tc_chain, test_report_levels_all);
|
tcase_add_test (tc_chain, test_report_levels_all);
|
||||||
|
|
Loading…
Reference in a new issue