X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fupdatedraw.c;h=a61eb151b8c5576dda76a69779e6cd230200f3fe;hb=2169dce96c5503ef8f6e4bb008e989d0ef02ec8e;hp=2f22fef2d416358625e4d59564dd74111614bcea;hpb=5cc3083179b19678456905a9122a3d0f04e6f623;p=platform%2Fupstream%2Flibdrm.git diff --git a/tests/updatedraw.c b/tests/updatedraw.c index 2f22fef..a61eb15 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);