summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
AgeCommit message (Collapse)Author
2009-03-22* win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL asnobu
application name for batch files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20* test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-20* test/ruby/test_process.rb: skips tests need fd inheritance.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-08specify exception class for rescue clause.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-07test setrlimit in a child process.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-06no need to restore rlimit in child process.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22* test/ruby/test_process.rb: mswin specs.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-22* test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to runnobu
tests without install. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-11* test/ruby/test_process.rb (TestProcess#test_wait_and_sigchild):naruse
Add rescue NotImplementedError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-09* test/ruby/test_process.rb (TestProcess::MANDATORY_ENVS): somenobu
platforms need environments for shared objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-02* test/ruby/test_process.rb (test_wait_and_sigchild): remove debugmame
output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29* process.c (rb_waitpid): retries waitpid when EINTR.yugui
[ruby-core:19744]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04* test/ruby/test_process.rb: skip some tests on win32.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04* process.c (check_exec_fds): resolve cascaded child fd reference.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03* process.c (EXEC_OPTION_DUP2_CHILD): defined.akr
(check_exec_redirect_fd): check :in, :out and :err. (check_exec_redirect): check [:child, fd]. (check_exec_fds): validate EXEC_OPTION_DUP2_CHILD array. (run_exec_dup2_child): new function. (rb_run_exec_options): call run_exec_dup2_child. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-03* process.c (check_exec_redirect): accept :in, :out, :err as redirectakr
target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-23* test/ruby/test_process.rb (TestProcess#test_rlimit_value): add ↵kazu
Errno::EINVAL. [ruby-dev:35900] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-21* process.c (pst_pid): use rb_attr_get to avoid warning onakr
Process::Status.allocate.pid. (pst_inspect): don't raise if self is not initialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06add comment.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-06* test/ruby/process.rb (test_popen_fork): skip a test which isnaruse
freeze in FreeBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22* test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]kazu
* test/ruby/test_process.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-17* test/ruby/test_process.rb (test_getpriority, test_setpriority): usemame
PRIO_PROCESS instead of PRIO_USER. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28fix test_status_kill for coredump message in Process::Status#inspect.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24* test/ruby/test_process.rb (test_exec_wordsplit): on win32, exec'ed process ↵usa
is not child but grandchild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24* test_process.rb (test_popen_fork): skip test if fork is not implemented.usa
* test_process.rb (test_getpriority): skip test if Process::PRIO_USER is not defined. * test_process.rb (test_setpriority): cannot rescue exceptions which raise in assert_nothing_raised. check Process:PRIO_USER before test to skip instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04* test/ruby/test_process.rb: add tests.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20 * test/ruby/test_file_exhaustive.rb (setup): workaround for Windowsusa
Vista. * test/ruby/envutil.rb (rubyexec): now Open3.open3 is supported on Windows. * test/ruby/test_process.rb: use ``||'' instead of ``;'' because cmd.exe not support it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-12 * process.c, include/ruby/intern.h (rb_run_exec_options): externed.usa
* process.c (save_redirect_fd, save_env_i, save_env, run_exec_dup2, run_exec_open, run_exec_pgroup, run_exec_rlimit, rb_run_exec_options): save parent's process environments. !!!remark!!! these are not thread-safe. * process.c (rb_spawn_internal): remove calling run_exec_options() because cannot restore after spawn. we'll fix this later. * io.c (pipe_open): ditto. * test/ruby/test_process.rb (test_execopts_env): upcase environment variable name for case insensitive platforms. * win32/win32.c (init_env): set USER environment variable only when USERNAME is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-11* test/ruby/test_process.rb (TestProcess#with_stdin): defined.akr
(TestProcess#test_argv0_noarg): don't use redirect_fds. [ruby-dev:34647] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-30add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-30don't use fork method.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-30* process.c (check_exec_redirect_fd): prohibit duplex IO.akr
(check_exec_fds): record maxhint even if close_others is not specified. (rb_exec_arg_fixup): renamed from rb_exec_arg_fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-29add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-27add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26don't use Unix commands such as true, env, etc.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-26* include/ruby/intern.h (rb_hash_dup): declared.akr
* hash.c (rb_hash_dup): new function. * process.c (rb_spawn_internal): don't modify option hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-25* process.c (rb_spawn_internal): new function to specifyakr
default_close_others. (rb_spawn): specify default_close_others true. (rb_f_system): call rb_spawn_internal with default_close_others as false. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24FreeBSD ash doesn't fail with echo >&4 where 4 is not opened.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24* process.c: include sys/stat.h for umask.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24* include/ruby/intern.h (rb_env_clear): declared.akr
(rb_io_mode_modenum): declared. (rb_close_before_exec): declared. (struct rb_exec_arg): add options and redirect_fds field. (rb_check_argv): removed. (rb_exec_initarg): declared. (rb_exec_getargs): declared. (rb_exec_initarg2): declared. (rb_fork): add third argument: fds. * io.c (max_file_descriptor): new static variable to record maximum file descriptor ruby used. (UPDATE_MAXFD): new macro. (UPDATE_MAXFD_PIPE): new macro. (rb_io_mode_modenum): externed. (rb_sysopen): update max_file_descriptor. (rb_close_before_exec): new function. (popen_exec): redirection removed because it is done by extended spawn mechanism. (pipe_open): generate a hash for spawn options to specify redirections. (pipe_open_v): use rb_exec_getargs. (pipe_open_s): use rb_exec_getargs. (rb_io_initialize): update max_file_descriptor.. * process.c (hide_obj): new function. (check_exec_redirect_fd): new function. (check_exec_redirect): new function. (check_exec_options_i): new function. (check_exec_fds): new function. (rb_check_exec_options): new function. (check_exec_env_i): new function. (rb_check_exec_env): new function. (rb_exec_getargs): new function. (rb_exec_initarg2): new function. (rb_exec_initarg): new function. (rb_f_exec): use rb_exec_initarg. (intcmp): new function. (run_exec_dup2): new function. (run_exec_close): new function. (run_exec_open): new function. (run_exec_pgroup): new function. (run_exec_rlimit): new function. (run_exec_options): new function. (rb_exec): call run_exec_options. (move_fds_to_avoid_crash): new function. (pipe_nocrash): new function. (rb_fork): use pipe_nocrash to avoid file descriptor conflicts. (rb_spawn): use rb_exec_initarg. (rlimit_resource_name2int): extracted from rlimit_resource_type. (rlimit_type_by_hname): new function. (rlimit_type_by_lname): new function. (rlimit_resource_type): use rlimit_type_by_hname. (proc_daemon): add fds argument for rb_fork. * hash.c (rb_env_clear): renamed from env_clear and externed. [ruby-dev:34086] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-16* test/ruby/test_process.rb (test_rlimit_nofile): reset RLIMIT_NOFILEmame
before exit (for gcov). * test/ruby/test_rubyoptions.rb: new tests for option of ruby interpreter, to achieve over 95% test coverage of ruby.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22* process.c (rlimit_resource_type): new function.akr
(rlimit_resource_value): new function. (proc_getrlimit): use rlimit_resource_type to accept symbol and string as resource type. (proc_setrlimit): use rlimit_resource_type and rlimit_resource_value to accept symbol and string as resource type and values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-30report the reason of process termination.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-31* test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):akr
setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-21use fork to isolate rlimit effect.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15add RLIMIT_NOFILE testakr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15give dummy argument for Process.getrlimit and rescue TypeError.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-15new file.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e