From 5c8a9890297d00f6c23a3007c38277a7dd98629b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 27 Apr 2024 19:09:03 +0300 Subject: [PATCH] video: Remove nonsensical test Printing an unknown video format returns NULL, and with latest git main this actually causes a critical warning in addition. Part-of: --- gstreamer-video/src/video_format.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gstreamer-video/src/video_format.rs b/gstreamer-video/src/video_format.rs index a3fdf6b11..41aa75889 100644 --- a/gstreamer-video/src/video_format.rs +++ b/gstreamer-video/src/video_format.rs @@ -480,13 +480,6 @@ mod tests { ); } - #[test] - #[should_panic(expected = "gst_video_format_to_string returned NULL")] - fn enum_to_string_panics() { - assert_eq!(&format!("{}", crate::VideoFormat::__Unknown(-1)), "UNKNOWN"); - assert_eq!(crate::VideoFormat::__Unknown(-1).to_str(), "UNKNOWN"); - } - #[test] fn test_display() { gst::init().unwrap();