Kenji Okimoto
null+****@clear*****
Mon Jun 19 14:33:39 JST 2017
Kenji Okimoto 2017-06-19 14:33:39 +0900 (Mon, 19 Jun 2017) New Revision: 6109d85b38b770f8ba94ebcd2a82b0f5d8633a81 https://github.com/milter-manager/milter-manager/commit/6109d85b38b770f8ba94ebcd2a82b0f5d8633a81 Message: test: Root user cannot succeed these test Because root user can read/write/remove all files. Modified files: test/core/test-connection.c test/manager/test-controller-context.c Modified: test/core/test-connection.c (+4 -0) =================================================================== --- test/core/test-connection.c 2017-06-19 13:52:31 +0900 (d81b449) +++ test/core/test-connection.c 2017-06-19 14:33:39 +0900 (c07010f) @@ -550,6 +550,10 @@ test_listen_remove_failure (void) GError *error = NULL; struct sockaddr_un *address_un = NULL; + if (geteuid() == 0) { + cut_omit("Root user cannot succeed this test."); + } + socket_path = cut_take_printf("%s/milter.sock", tmp_dir); spec = cut_take_printf("unix:%s", socket_path); g_file_set_contents(socket_path, "", 0, &error); Modified: test/manager/test-controller-context.c (+4 -0) =================================================================== --- test/manager/test-controller-context.c 2017-06-19 13:52:31 +0900 (7e1f7f2) +++ test/manager/test-controller-context.c 2017-06-19 14:33:39 +0900 (c558c10) @@ -232,6 +232,10 @@ test_set_configuration_failed (void) GString *output; guint packet_size_space; + if (geteuid() == 0) { + cut_omit("Root user cannot succeed this test."); + } + config = milter_manager_get_configuration(manager); milter_manager_configuration_clear_load_paths(config); milter_manager_configuration_prepend_load_path(config, tmp_dir); -------------- next part -------------- An HTML attachment was scrubbed... Télécharger