mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 21:02:59 +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:
@@ -149,6 +149,9 @@ igt_main
|
||||
TEST_SUCCESS(LOCAL_IOCTL_I915_GEM_CONTEXT_SETPARAM);
|
||||
}
|
||||
|
||||
/* NOTE: This testcase intentionally tests for the next free parameter
|
||||
* to catch ABI extensions. Don't "fix" this testcase without adding all
|
||||
* the tests for the new param first. */
|
||||
ctx_param.param = LOCAL_CONTEXT_PARAM_NO_ZEROMAP + 1;
|
||||
|
||||
igt_subtest("invalid-param-get") {
|
||||
|
||||
Reference in New Issue
Block a user