aboutsummaryrefslogtreecommitdiff
path: root/tests/updatedraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/updatedraw.c')
-rw-r--r--tests/updatedraw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/updatedraw.c b/tests/updatedraw.c
index 2f22fef2..a61eb151 100644
--- a/tests/updatedraw.c
+++ b/tests/updatedraw.c
@@ -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);