mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 19:28:03 +02:00
Skip tests that require root
This lets us do make distcheck as non-root.
This commit is contained in:
parent
8a5c4d567f
commit
751db3fe27
2 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue