Skip to content
Snippets Groups Projects
Commit 2214bc28 authored by Chris Wilson's avatar Chris Wilson Committed by Mauro Carvalho Chehab
Browse files

core_auth: Close(master) before exit


Add a missing close(master) to the subtest group fixture to prevent a
leak during later tests.

Signed-off-by: default avatarChris Wilson <chris.p.wilson@intel.com>
Reviewed-by: default avatarAndrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 59a4d00a
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@
* Testcase: drmGetMagic() and drmAuthMagic()
*/
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
......@@ -48,6 +47,9 @@
# include <pthread.h>
#endif
#include "igt.h"
#include "igt_types.h"
IGT_TEST_DESCRIPTION("Call drmGetMagic() and drmAuthMagic() and see if it behaves.");
static bool
......@@ -192,8 +194,6 @@ static void test_basic_auth(int master)
igt_main
{
int master;
/* root (which we run igt as) should always be authenticated */
igt_describe("Check drm client is always authenticated.");
igt_subtest("getclient-simple") {
......@@ -220,6 +220,8 @@ igt_main
/* above tests require that no drm fd is open */
igt_subtest_group {
igt_fd_t(master);
igt_fixture
master = drm_open_driver_master(DRIVER_ANY);
......
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