tests: use igt_debugfs where possible

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood
2014-11-03 13:48:51 +00:00
parent 4f689d52e7
commit c049c39f35
6 changed files with 17 additions and 56 deletions
+3 -1
View File
@@ -50,7 +50,9 @@ typedef struct {
static void get_crc(char *crc) {
int ret;
FILE *file = fopen("/sys/kernel/debug/dri/0/i915_sink_crc_eDP1", "r");
FILE *file;
file = igt_debugfs_fopen("i915_sink_crc_eDP1", "r");
igt_require(file);
ret = fscanf(file, "%s\n", crc);