]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus_policy_test: remove stub
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 22 Jun 2011 14:53:09 +0000 (15:53 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 19 Sep 2011 14:05:39 +0000 (15:05 +0100)
bus/policy.c
bus/test-main.c
bus/test.h

index 4841f47c6b48ab4674a5c12e0b2f2c13f946820b..34e8446958f42fc7520503d6e8a9620611818d0f 100644 (file)
@@ -1280,18 +1280,3 @@ bus_client_policy_check_can_own (BusClientPolicy  *policy,
 
   return allowed;
 }
-
-#ifdef DBUS_BUILD_TESTS
-
-dbus_bool_t
-bus_policy_test (const DBusString *test_data_dir)
-{
-  /* This doesn't do anything for now because I decided to do it in
-   * dispatch.c instead by having some of the clients in dispatch.c
-   * have particular policies applied to them.
-   */
-  
-  return TRUE;
-}
-
-#endif /* DBUS_BUILD_TESTS */
index a8039d5129ee612f646ebb5a85182c42f8f829b2..1b7c5bea77e403719c31a705ca7f41e829420e85 100644 (file)
@@ -130,15 +130,6 @@ main (int argc, char **argv)
       test_post_hook ();
     }
 
-  if (only == NULL || strcmp (only, "policy") == 0)
-    {
-      test_pre_hook ();
-      printf ("%s: Running policy test\n", argv[0]);
-      if (!bus_policy_test (&test_data_dir))
-        die ("policy");
-      test_post_hook ();
-    }
-
   if (only == NULL || strcmp (only, "signals") == 0)
     {
       test_pre_hook ();
index 45024e65f378207f73bc21eae30d4f2898fca10e..98a2c6ba2997e36e1c82a0837ee81ed1e2e13852 100644 (file)
@@ -32,7 +32,6 @@
 
 dbus_bool_t bus_dispatch_test         (const DBusString             *test_data_dir);
 dbus_bool_t bus_dispatch_sha1_test    (const DBusString             *test_data_dir);
-dbus_bool_t bus_policy_test           (const DBusString             *test_data_dir);
 dbus_bool_t bus_config_parser_test    (const DBusString             *test_data_dir);
 dbus_bool_t bus_config_parser_trivial_test (const DBusString        *test_data_dir);
 dbus_bool_t bus_signals_test          (const DBusString             *test_data_dir);