summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-11-09 13:48:21 -0500
committerColin Walters <walters@verbum.org>2013-11-11 18:29:54 -0500
commit6d3d0a8ffb0fd8ae59eb35593b305ec87da8858d (patch)
treee8665a272461120fec4a533f5b93ad323fc2a76e /test
parentbfa5036bfb93582c5a87c44b847957479d911e38 (diff)
downloadpolkit-6d3d0a8ffb0fd8ae59eb35593b305ec87da8858d.tar.gz
Port internals non-deprecated PolkitProcess API where possible
We can't port everything, but in PolkitPermission and these test cases, we can use _for_owner() with the right information.
Diffstat (limited to 'test')
-rw-r--r--test/polkitbackend/test-polkitbackendjsauthority.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/polkitbackend/test-polkitbackendjsauthority.c b/test/polkitbackend/test-polkitbackendjsauthority.c
index a4de6b1..dfb894f 100644
--- a/test/polkitbackend/test-polkitbackendjsauthority.c
+++ b/test/polkitbackend/test-polkitbackendjsauthority.c
@@ -74,8 +74,8 @@ test_get_admin_identities_for_action_id (const gchar *action_id,
authority = get_authority ();
- caller = polkit_unix_process_new (getpid ());
- subject = polkit_unix_process_new (getpid ());
+ caller = polkit_unix_process_new_for_owner (getpid (), 0, getuid ());
+ subject = polkit_unix_process_new_for_owner (getpid (), 0, getuid ());
user_for_subject = polkit_identity_from_string ("unix-user:root", &error);
g_assert_no_error (error);
@@ -340,8 +340,8 @@ rules_test_func (gconstpointer user_data)
authority = get_authority ();
- caller = polkit_unix_process_new (getpid ());
- subject = polkit_unix_process_new (getpid ());
+ caller = polkit_unix_process_new_for_owner (getpid (), 0, getuid ());
+ subject = polkit_unix_process_new_for_owner (getpid (), 0, getuid ());
user_for_subject = polkit_identity_from_string (tc->identity, &error);
g_assert_no_error (error);