tests: gstinfo: Make logging tests pass when GST_DEBUG is set
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Sat, 22 Aug 2020 21:42:40 +0000 (23:42 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 7 Nov 2022 14:49:44 +0000 (14:49 +0000)
commit38a2453f2390f77e568ad5864501e1ff70e5078f
tree24482c2e995e3c3a149786095a0f5525c71b2761
parent58013b4b212ae8f89699dc535b40a763248a9ecf
tests: gstinfo: Make logging tests pass when GST_DEBUG is set

Use gst_debug_set_threshold_from_string's new reset behavior to undo
GST_DEBUG and ensure the logging tests have a known configuration.

`gst_debug_set_threshold_from_string ("LOG", TRUE)` has the same effect
as `gst_debug_set_threshold_from_string ("", TRUE)` followed by
`gst_debug_set_default_threshold (GST_LEVEL_LOG)`.

Don't bother remembering the default log level set when the test
started. It will get reset by the next test, anyway.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/605>
subprojects/gstreamer/tests/check/gst/gstinfo.c