summaryrefslogtreecommitdiff
path: root/test/camera-sensor.cpp
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-08-05 17:07:55 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-08-11 02:16:21 +0200
commitc64b898a35134090c165cfc085dd6556fdb2347f (patch)
tree23174019a920e81d952c1b63d308e4d34881b0af /test/camera-sensor.cpp
parent440f7b4153f22ac061a9fd2b2e7beb2370f158f5 (diff)
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>
Diffstat (limited to 'test/camera-sensor.cpp')
-rw-r--r--test/camera-sensor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/camera-sensor.cpp b/test/camera-sensor.cpp
index 092cbdd8..9fe59cc9 100644
--- a/test/camera-sensor.cpp
+++ b/test/camera-sensor.cpp
@@ -83,7 +83,8 @@ protected:
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_BGR888_1X24 },
Size(1024, 768));