From: Hans Verkuil Date: Mon, 16 Jul 2012 13:50:46 +0000 (+0200) Subject: v4l2-compliance: fix timings_cap test. X-Git-Tag: v4l-utils-0.9.1~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5be663f181da9dc2a910017713a2d54e44e5f7b9;p=platform%2Fupstream%2Fv4l-utils.git v4l2-compliance: fix timings_cap test. If the driver doesn't implement VIDIOC_DV_TIMINGS_CAP, then this test failed when it should have returned OK. Signed-off-by: Hans Verkuil --- diff --git a/utils/v4l2-compliance/v4l2-test-io-config.cpp b/utils/v4l2-compliance/v4l2-test-io-config.cpp index 22cf4d4..09e2dc4 100644 --- a/utils/v4l2-compliance/v4l2-test-io-config.cpp +++ b/utils/v4l2-compliance/v4l2-test-io-config.cpp @@ -323,6 +323,8 @@ static int checkTimingsCap(struct node *node, bool has_timings) return fail("TIMINGS cap set, but could not get timings caps\n"); if (!ret && !has_timings) return fail("TIMINGS cap not set, but could still get timings caps\n"); + if (ret && !has_timings) + return 0; if (check_0(timingscap.reserved, sizeof(timingscap.reserved))) return fail("reserved not zeroed\n"); fail_on_test(timingscap.type != V4L2_DV_BT_656_1120);