v4l2-compliance: improve tests when TRY/S_FMT returns EINVAL.
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 11 Mar 2013 20:45:14 +0000 (21:45 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Mon, 11 Mar 2013 20:45:14 +0000 (21:45 +0100)
commit7592b0e57208fabdf6b9c3039ffc128843a68648
treea06e1baa967abdbcbcce87eb8e1ae622c3cd0b87
parent125e23e16fee4346729b104ed8f17dbabf27e3c1
v4l2-compliance: improve tests when TRY/S_FMT returns EINVAL.

If a wrong pixelformat is specified, then TRY/S_FMT can return EINVAL.
However, part of the test sequence was skipped in that case, which led
to missed errors.

Now get a valid pixelformat and put that in and try again. That way all
other tests are executed as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/v4l2-compliance/v4l2-test-formats.cpp