return is_authenticated;
}
-int main(int argc, char **argv)
+
+igt_main
{
- int fd;
- bool auth;
+ /* root (which we run igt as) should always be authenticated */
+ igt_subtest("simple") {
+ int fd = drm_open_any();
- fd = drm_open_any();
+ igt_assert(check_auth(fd) == true);
- /* root (which we run igt as) should always be authenticated */
- auth = check_auth(fd);
- igt_assert(auth);
+ close(fd);
+ }
+
+ igt_subtest("master-drop") {
+ int fd = drm_open_any();
+ int fd2 = drm_open_any();
- return 0;
+ igt_assert(check_auth(fd2) == true);
+
+ close(fd);
+
+ igt_assert(check_auth(fd2) == true);
+
+ close(fd2);
+ }
}