diff options
author | Stanislav Lisovskiy <stanislav.lisovskiy@gmail.com> | 2019-02-19 11:38:00 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-03-06 14:53:51 +0200 |
commit | 91908d36d0d5c90eea86e29736d2748d5ec55335 (patch) | |
tree | c3483fee72abcafa461a5a0b4b20c820c7e4660e /lib/igt_aux.c | |
parent | a382aeec489a187591677644cc3b98e34322b474 (diff) |
igt/tests: Fix error checking in kms_atomic_transition
There is no guarantee that error return value will be
always EINVAL, made a check more general as it can be
ERANGE, ENOSPC, EINVAL and probably others, which all
mean the same in context of this test case: i.e this sprite
size is not valid.
v2: Added macro to make check look a bit nicer.
v3: Removed redundant debug line.
v4: Added assertion if error is not EINVAL as expected,
other errors except EINVAL are considered now a failures.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109225
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Diffstat (limited to 'lib/igt_aux.c')
0 files changed, 0 insertions, 0 deletions