tests: video: Test video format enum stability
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 17 Nov 2018 04:51:44 +0000 (23:51 -0500)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Feb 2019 13:25:23 +0000 (13:25 +0000)
commitfcaf938e8cb69fddc904246981760549c7b40c56
treed57d0e60b5a13f8302894c3b5055f158073d0a9a
parent79365f9b4155b3839536a63f92563b96103a8666
tests: video: Test video format enum stability

It is really easy to break the API and insert a new video format in the
middle of the enum instead of at the end. This minimal test should catch
the most obvious errors. Ideally, this test should be updated after new
format have been added, so that it won't allow further modification to
the enumeration API.
tests/check/libs/video.c