diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-25 00:23:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-25 00:24:37 +0000 |
commit | 2297766d8101661cd03749630aeb1c60cc615da1 (patch) | |
tree | 146ddf4cc8285b840c8d31995fecb0a86fd01dec /tests/kms_sink_crc_basic.c | |
parent | a056f7c4cd23012932ea9013967d87177219797a (diff) |
igt/kms_sink_crc_base: CRC is on 3 channels, not 4.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_sink_crc_basic.c')
-rw-r--r-- | tests/kms_sink_crc_basic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_sink_crc_basic.c b/tests/kms_sink_crc_basic.c index 4fc82c78..159683e2 100644 --- a/tests/kms_sink_crc_basic.c +++ b/tests/kms_sink_crc_basic.c @@ -47,16 +47,16 @@ typedef struct { static void assert_color(int dir, enum color color) { - unsigned int r, g, b, x; + unsigned int r, g, b; igt_require_f(igt_sysfs_scanf(dir, "i915_sink_crc_eDP1", - "%4x%4x%4x%4x\n", - &r, &g, &b, &x) == 4, + "%4x%4x%4x", + &r, &g, &b) == 3, "Sink CRC is unreliable on this machine. Try manual debug with --interactive-debug=no-crc\n"); /* Black screen is always invalid */ - igt_assert_neq(r | g | b | x, 0); + igt_assert_neq(r | g | b, 0); switch (color) { case RED: |