mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 05:43:02 +00:00
tests: Document ABI extension catchers
Our invalid-flags/params testcases are meant to catch abi extensions by just testing for the next available flag/param. Unfortunately we need that since without those we forgot to write testcases for these new flags way too often :( But it's not entirely clear why this is, so document this trick with comments. Also gem_wait wasn't this paranoid, so change the testcase to be so. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -221,6 +221,9 @@ igt_main
|
||||
/* HANDLE_LUT and NO_RELOC are already exercised by gem_exec_lut_handle */
|
||||
|
||||
igt_subtest("invalid-flag") {
|
||||
/* NOTE: This test intentionally exercise the next available
|
||||
* flag. Don't "fix" this testcase without adding the required
|
||||
* tests for the new flag first. */
|
||||
execbuf.flags = I915_EXEC_RENDER | (LOCAL_I915_EXEC_RESOURCE_STREAMER << 1);
|
||||
RUN_FAIL(EINVAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user