Skip to content

Commit

Permalink
Revert "Fix test failures on non gnome-terminal in GNOME"
Browse files Browse the repository at this point in the history
This reverts commit 740e375.
  • Loading branch information
swick committed Mar 14, 2024
1 parent dcb493f commit 10e6b2e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 20 deletions.
3 changes: 1 addition & 2 deletions tests/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ static int got_info;

extern XdpDbusImplPermissionStore *permission_store;
extern XdpDbusImplLockdown *lockdown;
extern gchar *appid;

static void
set_camera_permissions (const char *permission)
Expand All @@ -27,7 +26,7 @@ set_camera_permissions (const char *permission)
"devices",
TRUE,
"camera",
appid,
"",
permissions,
NULL,
&error);
Expand Down
3 changes: 1 addition & 2 deletions tests/inhibit.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
extern char outdir[];

extern XdpDbusImplPermissionStore *permission_store;
extern gchar *appid;

static void
set_inhibit_permissions (const char **permissions)
Expand All @@ -19,7 +18,7 @@ set_inhibit_permissions (const char **permissions)
"inhibit",
TRUE,
"inhibit",
appid,
"",
permissions,
NULL,
&error);
Expand Down
7 changes: 0 additions & 7 deletions tests/limited-portals.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ static GDBusConnection *session_bus;
static GList *test_procs = NULL;
XdpDbusImplPermissionStore *permission_store;
XdpDbusImplLockdown *lockdown;
gchar *appid;

int
xdup (int oldfd)
Expand Down Expand Up @@ -138,7 +137,6 @@ global_setup (void)
g_autofree gchar *argv0 = NULL;
g_autoptr(GSubprocessLauncher) launcher = NULL;
g_autoptr(GSubprocess) subprocess = NULL;
g_autoptr(XdpAppInfo) appinfo = NULL;
guint name_timeout;
const char *argv[4];
GQuark portal_errors G_GNUC_UNUSED;
Expand Down Expand Up @@ -320,10 +318,6 @@ global_setup (void)
&error);
g_assert_no_error (error);

appinfo = xdp_get_app_info_from_pid (getpid (), &error);
g_assert_no_error (error);
appid = g_strdup (xdp_app_info_get_id (appinfo));

/* make sure errors are registered */
portal_errors = XDG_DESKTOP_PORTAL_ERROR;
}
Expand Down Expand Up @@ -380,7 +374,6 @@ global_teardown (void)

g_object_unref (lockdown);
g_object_unref (permission_store);
g_free (appid);

g_object_unref (session_bus);

Expand Down
7 changes: 0 additions & 7 deletions tests/test-portals.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ static GDBusConnection *session_bus;
static GList *test_procs = NULL;
XdpDbusImplPermissionStore *permission_store;
XdpDbusImplLockdown *lockdown;
gchar *appid;

int
xdup (int oldfd)
Expand Down Expand Up @@ -137,7 +136,6 @@ global_setup (void)
g_autofree gchar *argv0 = NULL;
g_autoptr(GSubprocessLauncher) launcher = NULL;
g_autoptr(GSubprocess) subprocess = NULL;
g_autoptr(XdpAppInfo) appinfo = NULL;
guint name_timeout;
const char *argv[4];
GQuark portal_errors G_GNUC_UNUSED;
Expand Down Expand Up @@ -333,10 +331,6 @@ global_setup (void)
&error);
g_assert_no_error (error);

appinfo = xdp_get_app_info_from_pid (getpid (), &error);
g_assert_no_error (error);
appid = g_strdup (xdp_app_info_get_id (appinfo));

/* make sure errors are registered */
portal_errors = XDG_DESKTOP_PORTAL_ERROR;
}
Expand Down Expand Up @@ -393,7 +387,6 @@ global_teardown (void)

g_object_unref (lockdown);
g_object_unref (permission_store);
g_free (appid);

g_object_unref (session_bus);

Expand Down
3 changes: 1 addition & 2 deletions tests/wallpaper.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ extern char outdir[];
static int got_info = 0;

extern XdpDbusImplPermissionStore *permission_store;
extern gchar *appid;

static void
set_wallpaper_permissions (const char *permission)
Expand All @@ -23,7 +22,7 @@ set_wallpaper_permissions (const char *permission)
"wallpaper",
TRUE,
"wallpaper",
appid,
"",
permissions,
NULL,
&error);
Expand Down

0 comments on commit 10e6b2e

Please sign in to comment.