Skip to content
Snippets Groups Projects
Commit 751db3fe authored by Kristian Høgsberg's avatar Kristian Høgsberg
Browse files

Skip tests that require root

This lets us do make distcheck as non-root.
parent 8a5c4d56
No related branches found
Tags libdrm-2.4.6
No related merge requests found
......@@ -40,6 +40,11 @@ int main(int argc, char **argv)
int fd, ret;
drm_set_version_t sv, version;
if (getuid() != 0) {
fprintf(stderr, "setversion test requires root, skipping\n");
return 0;
}
fd = drm_open_any_master();
/* First, check that we can get the DD/DI versions. */
......
......@@ -123,6 +123,11 @@ int main(int argc, char **argv)
{
int fd, ret, d1, d2;
if (getuid() != 0) {
fprintf(stderr, "updatedraw test requires root, skipping\n");
return 0;
}
fd = drm_open_any_master();
d1 = add_drawable(fd);
......
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