We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit dad4694b authored by Thomas Wood's avatar Thomas Wood Committed by Daniel Vetter

lib: fix igt_reset_connectors

Use igt_debugfs_open to open the connector file, since the
forced_connectors array now only stores the connector path relative to
the debugfs path. Also add some extra error checking to ensure a test
failure if the reset fails.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85829Signed-off-by: default avatarThomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 57259d71
......@@ -1773,8 +1773,8 @@ void igt_reset_connectors(void)
* functions that are not safe to call in signal handlers */
for (tmp = forced_connectors; *tmp; tmp++) {
int fd = open(*tmp, O_WRONLY | O_TRUNC);
write(fd, "unspecified", 11);
int fd = igt_debugfs_open(*tmp, O_WRONLY | O_TRUNC);
igt_assert(write(fd, "unspecified", 11) == 11);
close(fd);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment