Skip to content
Snippets Groups Projects
Commit 8d33b611 authored by Juha-Pekka Heikkilä's avatar Juha-Pekka Heikkilä
Browse files

tests/kms_addfb_basic: avoid excessive logging on legacy format test

legacy format addfb test try to fuzz kernel with random parameters,
these random parameters cause logging into dmesg. Limit fuzzing
rounds to maximum of 10k (or 1 second) to limit size of created log.

Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/7017


Signed-off-by: default avatarJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: default avatarVinod Govindapillai <vinod.govindapillai@intel.com>
parent ca6f5bdd
No related branches found
No related tags found
Loading
......@@ -241,6 +241,13 @@ static void invalid_tests(int fd)
}
count++;
/*
* to avoid exessive logging stop after 10k loops
*/
if (count >= 10000) {
break;
}
}
/* After all the abuse, confirm the known_formats */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment