tests: camera-sensor: Test using invalid media bus format
Linux commit b6c61a6c37317efd ("media: vimc: propagate pixel format in the stream") changes the sensor in the vimc media graph to accept all media bus format currently described in Linux. This prevents the camera-sensor test case to verify that a supported media bus format is selected from a list of defined formats, fix this by using an invalid media bus format in the test case. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
440f7b4153
commit
c64b898a35
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ protected:
|
||||||
return TestFail;
|
return TestFail;
|
||||||
}
|
}
|
||||||
|
|
||||||
V4L2SubdeviceFormat format = sensor_->getFormat({ MEDIA_BUS_FMT_UYVY8_2X8,
|
/* Use an invalid format and make sure it's not selected. */
|
||||||
|
V4L2SubdeviceFormat format = sensor_->getFormat({ 0xdeadbeef,
|
||||||
MEDIA_BUS_FMT_SBGGR10_1X10,
|
MEDIA_BUS_FMT_SBGGR10_1X10,
|
||||||
MEDIA_BUS_FMT_BGR888_1X24 },
|
MEDIA_BUS_FMT_BGR888_1X24 },
|
||||||
Size(1024, 768));
|
Size(1024, 768));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue