summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
AgeCommit message (Collapse)Author
2014-03-30process.c: preserve encodingsnobu
* process.c (rlimit_resource_type, rlimit_resource_value): preserve argument encoding in error messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-30test_process.rb: test if success?nobu
* test/ruby/test_process.rb (test_rlimit_value): should not use magic number 0, which may not be EXIT_SUCCESS. use `success?` instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-24test_process.rb: clock_getres may not supportednobu
* test/ruby/test_process.rb (test_clock_getres): ignore if clock_getres is no supported, e.g., on old Linux. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-23test_process.rb: fix conditionnobu
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking): fix condition to define. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-23test_process.rb: deadlock testnobu
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking): test for r44687, deadlock in rb_fork_internal(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16test_process.rb: fix for 32bit platformsnobu
* test/ruby/test_process.rb (test_clock_gettime_unit): results can exceed Fixnum limit, especially on 32bit platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-16* process.c (make_clock_result): add :second as a unit fornaruse
Process.clock_gettime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-14test_process.rb: handshakenobu
* test/ruby/test_process.rb: handshake by pipe instead of sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-12-13test/ruby: better assertionsnobu
* test/ruby: use better assertions instead of mere assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-15envutil.rb: crash report on Mac OS Xnobu
* test/ruby/envutil.rb (EnvUtil.diagnostic_reports): find crash report on Mac OS X. * test/ruby/envutil.rb (Test::Unit::Assertions::FailDesc): include crash report on Mac OS X. * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): remove crash reports if exist. * test/ruby/test_process.rb (TestProcess#test_status_kill): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-03Fix a typo.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-03* process.c (rb_clock_gettime): Support times() based monotonic clock.akr
(rb_clock_getres): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-01Add assertions.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-31* process.c (rb_clock_getres): New method.akr
(timetick2dblnum_reciprocal): New function. * configure.in: Check clock_getres. [ruby-core:56780] [Feature #8809] accepted at DevelopersMeeting20130831Japan https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130831Japan git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-24* process.c (rb_clock_gettime): The emulated clock names changed.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-23add tests.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-22* process.c (rb_clock_gettime): Strip "s" from unit names.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-11* process.c (rb_clock_gettime): New method.akr
This is accepted in the meeting: https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20130809 This method is accepted as a CRuby feature. I.e. Other Ruby implementations don't need to implement it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-09file.c: normalize Form Cnobu
* file.c (rb_str_normalize_ospath): normalize to Normalization Form C using CFString. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-11* process.c (rb_daemon): daemon(3) is implemented with fork(2).naruse
Therefore it needs rb_thread_atfork(). (and revert r41903) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-10On FreeBSD, threads don't die on daemon(3)naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-10process.c: kill threads in daemon processnobu
* process.c (fork_daemon): kill the other threads all and abandon the kept mutexes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-30win32: UTF-8 spawnnobu
* test/ruby/test_process.rb (test_spawn_nonascii): assertions for non-ascii arguments. [ruby-core:24309] [Bug #1771] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-30win32.c: use backslashnobu
* win32/win32.c (join_argv): use backslash instead of slash in program path, otherwise cannot invoke "./c\u{1ee7}a.exe" for some reason. [ruby-core:24309] [Bug #1771] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-30win32: UTF-8 spawnnobu
* io.c (spawnv, spawn): use UTF-8 spawn family. [Bug #1771] * process.c (proc_exec_sh, proc_spawn_cmd, proc_spawn_sh): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-30test_process.rb: File.realpath directlynobu
* test/ruby/test_process.rb (with_tmpchdir): use File.realpath directly, no need to depend on pathname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19test_process.rb: redirect to nullnobu
* test/ruby/test_process.rb (test_no_curdir): since standard handles cannot close on Windows, redirect to null device. * test/ruby/test_process.rb (assert_fail_too_long_path): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-02* test/ruby/test_process.rb (TestProcess#test_no_curdir): maybe nowusa
we can test it. * test/ruby/test_thread.rb (TestThread#test_thread_timer_and_interrupt): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-20* test/csv/test_features.rb, test/logger/test_logger.rbakr
test/mkmf/test_have_macro.rb, test/net/http/test_http.rb, test/openssl/test_config.rb, test/psych/test_encoding.rb, test/psych/test_exception.rb, test/psych/test_psych.rb, test/psych/test_tainted.rb, test/readline/test_readline.rb, test/rexml/test_contrib.rb, test/ruby/test_autoload.rb, test/ruby/test_beginendblock.rb, test/ruby/test_exception.rb, test/ruby/test_file.rb, test/ruby/test_io.rb, test/ruby/test_marshal.rb, test/ruby/test_process.rb, test/ruby/test_require.rb, test/ruby/test_rubyoptions.rb, test/syslog/test_syslog_logger.rb, test/webrick/test_httpauth.rb, test/zlib/test_zlib.rb: Use Tempfile.create. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23test_process.rb: fix testnobu
* test/ruby/test_process.rb (assert_fail_too_long_path): get rid of syntax error on sh, increase command line size until it exceeds the limit. [Bug #7904] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22test_process.rb: fix parametersnobu
* test/ruby/test_process.rb (test_{,a}spawn_too_long_path): fix missing parameters in r38934. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-22* test/ruby/test_process.rb: remove useless sleep.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-21* file.c (rb_group_member): get rid of NGROUPS dependency.kosaki
[Bug #7886] [ruby-core:52537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-14* test/ruby/test_process.rb (test_setsid): Added a workaround forkosaki
MacOS X. Patch by nagachika. [Bug #7826] [ruby-core:52126] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-09the process maybe already finishednaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-06* test/ruby/test_process.rb (test_setsid): ensure to callkosaki
Process.wait(). Reported by George Koehler. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-06* test/ruby/test_process.rb (test_setsid): skip when platform iskosaki
OpenBSD. Contributed from George Koehler. [Bug #7789] [ruby-core:51889] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-29* test/ruby/test_marshal.rb: remove temporally files early.akr
* test/ruby/test_process.rb: ditto. * test/psych/test_exception.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25test_process.rb: reduce command string sizenobu
* test/ruby/test_process.rb (test_spawn_too_long_path), (test_aspawn_too_long_path): reduce command string size until intended exception occurs. [ruby-core:51592] [Bug #7721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-12Suppress warning: too long pathnaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-26* test/ruby/test_process.rb (test_setsid): added a few wait forkosaki
preventing that Process.getsid(io.pid) makes Errno::ESRCH. (refix r37844) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-25* test/ruby/test_process.rb (test_setsid): call Process.getsid fornagachika
child process in child process. because parent process call Process.getsid with io.pid, Errno::ESRCH could be raised. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-24Fix TestProcess#test_setsidshirosaki
* test/ruby/test_process.rb (TestProcess#test_setsid): "./ruby-trunk" doesn't work on all environments. EnvUtil.rubybin would be suitable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-24* process.c (proc_getsid): adds new method for getting session id.kosaki
Contributed from fumiyas (Fumiyasu SATOH). Thank you! [Feature #6757] [ruby-dev:45977] * configure.in: adds getsid check. * test/ruby/test_process.rb (TestProcess#test_setsid): new test for the above. * NEWS: news for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-01test_process.rb: use never existing filenobu
* test/ruby/test_process.rb (test_execopts_preserve_env_on_exec_failure): use never existing file in the current temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-01* test/ruby/test_process.rb: Revert r37404. My ubuntu box hasmame
actually the directory named "/nonexistent"... Sorry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-01* test/ruby/test_process.rb: Process.exec raised EACCES on Linuxmame
3.5.0-17-generic. This is a temporal fix to rescue that exception. Needs kosaki's review. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-16* test/ruby/envutil.rb (Test::Unit::Assertions#assert_file): rename from ↵kazu
file_assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-15envutil.rb: file_assertionnobu
* test/ruby/envutil.rb (Test::Unit::Assertions#file_assertion): rewrite file assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-10Rename variablsnaruse
* uid always stores uid * user stores username or nil git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e