summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-02 10:54:27 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-11 10:42:27 -0300
commita4dbdeffc2995a0b84efb3bdfc9e460b731d7af5 (patch)
treef0e9cd66af67798eb99ed31e38ff62196efab020 /tests
parentd9ff9b3971121acdaedf45d95acceabbb1391547 (diff)
tests/kms_fbc_crc: run even if FBC is disabled by default
We may not be perfect, but if we don't even test, we will probably only get worse over time. The function called makes sure we restore whatever was the original FBC parameter when we exit the test, so this should not affect the other tests. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_fbc_crc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index 37221ac1..d9642243 100644
--- a/tests/kms_fbc_crc.c
+++ b/tests/kms_fbc_crc.c
@@ -559,10 +559,10 @@ igt_main
igt_assert_lt(0, fread(buf, 1, sizeof(buf), status));
fclose(status);
buf[sizeof(buf) - 1] = '\0';
- igt_require_f(!strstr(buf, "unsupported on this chipset") &&
- !strstr(buf, "disabled per module param") &&
- !strstr(buf, "disabled per chip default"),
- "FBC not supported/enabled\n");
+ igt_require_f(!strstr(buf, "unsupported on this chipset"),
+ "FBC not supported\n");
+
+ igt_set_module_param_int("enable_fbc", 1);
data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
igt_assert(data.bufmgr);