summaryrefslogtreecommitdiff
path: root/32c8be484cf81717471909c7fa4dd4635d3a01c8
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-12-04 15:51:46 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-19 18:38:40 +0200
commitf9cf26802d5ab0e28ccf3429914952307f99f5af (patch)
tree5f1e63d6e93667c21cfc0614c509ff2c9d0536d5 /32c8be484cf81717471909c7fa4dd4635d3a01c8
parent05630a430abc37c2dbf438c78a686d6ffe4f9261 (diff)
vsp-lib: Reset controls to defaults on each test run
Some of our tests set flipping and rotation controls, and the VSP instance can be used again by later tests. If these controls are not reset, then that operation is applied to later tests incorrectly causing those tests to fail. In an ideal world, tests should clean up after themselves, and leave the system in a known state. However the world is not ideal and we would not be able to guarantee any previous system state before a test was run anyway. Therefore it is more effective to reset state at the beginning of a test. To repair this - reset all control values to their defaults at the start of every test during test_init() Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to '32c8be484cf81717471909c7fa4dd4635d3a01c8')
0 files changed, 0 insertions, 0 deletions