aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/process
Commit message (Collapse)AuthorAgeFilesLines
* Update to ruby/spec@7e680faBenoit Daloze2023-01-051-1/+1
|
* Update to ruby/spec@9d69b95Benoit Daloze2023-01-054-1/+41
|
* Update to ruby/spec@740ccc8Benoit Daloze2022-11-072-0/+42
|
* Skip utime example with Intel C Compiler suiteHiroshi SHIBATA2022-10-131-5/+9
|
* Fix Process.clock_gettime specs on OpenBSDJeremy Evans2022-06-261-1/+3
|
* Update to ruby/spec@ab32a1aBenoit Daloze2022-06-2611-54/+116
|
* Update to ruby/spec@3affe1eBenoit Daloze2022-04-251-0/+9
|
* Update to ruby/spec@b1e93a2Benoit Daloze2021-09-071-0/+20
|
* Update to ruby/spec@b65d01fBenoit Daloze2021-07-292-21/+110
|
* Update to ruby/spec@a0b7d0dBenoit Daloze2021-06-027-31/+12
|
* Update to ruby/spec@4ce9f41Benoit Daloze2020-12-273-4/+44
|
* Use Integer instead of Fixnum/BignumNobuyoshi Nakada2020-12-216-12/+12
|
* Update to ruby/spec@b0b7f53Benoit Daloze2020-11-132-10/+14
|
* spec/ruby/core/process/spawn_spec.rb: skip a test on AndroidYusuke Endoh2020-10-011-1/+1
| | | | | | | | | | | | | On Android, STDERR seems to be open even its invoker closes it. http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20201001T014315Z.fail.html.gz ``` 1) Process.spawn closes STDERR in the child if :err => :close FAILED Expected (59840): "out\nrescued\n" but got: "out\n" ```
* Update to ruby/spec@681e8cfBenoit Daloze2020-09-301-6/+8
|
* Update to ruby/spec@9277d27Benoit Daloze2020-09-301-0/+9
|
* spec/ruby/core/process/clock_getres_spec.rb: lax the resolution limitYusuke Endoh2020-05-031-4/+4
| | | | | | Android is Linux, but the clock resolution is 10 milliseconds. I think that 1 microsecond is too strict for embedded environment. This change laxes the limit to 10 milliseconds.
* Update to ruby/spec@d394dfdBenoit Daloze2020-05-021-2/+2
|
* Skip Process#clock_getres specs on AndroidYusuke Endoh2020-04-191-2/+2
| | | | ... just like AIX and OpenBSD.
* Drop support for ruby 2.4 from ruby/specNobuyoshi Nakada2020-04-012-31/+27
|
* Increase the number of Process.times attemptsTakashi Kokubun2020-03-281-1/+1
| | | | | CI of 5806c54447439f2ba22892e4045e78dd80f96f0c did not succeed https://travis-ci.org/github/ruby/ruby/jobs/668072714
* Improve reliability of the Process.times specBenoit Daloze2020-03-281-4/+12
|
* Do not check that #stime changes in Process.times specBenoit Daloze2020-03-281-1/+0
| | | | * Since the spec might not spend any time in system calls.
* Remove debugging codeBenoit Daloze2020-03-281-8/+1
|
* Remove Process.clock_getres "matches the resolution in practice" specsBenoit Daloze2020-03-282-72/+0
| | | | | * Almost all platforms return incorrect values for Process.clock_getres, it should be removed: https://bugs.ruby-lang.org/issues/16740
* Update to ruby/spec@ec84479Benoit Daloze2020-03-281-7/+3
|
* Show failed timesNobuyoshi Nakada2020-03-241-1/+3
|
* Try to avoid random failures on clock_getres_spec.rbTakashi Kokubun2020-03-231-1/+1
| | | | | | This spec fails too often https://github.com/ruby/ruby/runs/529546249 https://github.com/ruby/ruby/runs/524933256
* spec/ruby/core/process/exec_spec.rb: remove a guard for openbsdYusuke Endoh2020-03-051-10/+2
| | | | | | openbsd current seems to behave the same as other OSs. https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20200305T063005Z.fail.html.gz
* spec/ruby/core/process/spawn_spec.rb: Use / instead of /tmpYusuke Endoh2020-02-131-1/+1
| | | | because there is no /tmp on Android.
* spec/ruby/core/process/clock_getres_spec.rb: skip on AndroidYusuke Endoh2020-02-131-1/+1
| | | | | in the same way as FreeBSD and OpenBSD. I guess that the spec makes too strong assumption.
* spec/ruby/core/process/times_spec.rb: add an output code for debuggingYusuke Endoh2020-01-251-1/+8
|
* Include the standard `id` command outputNobuyoshi Nakada2020-01-091-0/+4
| | | | | On macOS, GNU coreutils `id` is limited to NGROUPS_MAX groups, because of the backward compatibility of getgroups(2).
* Update to ruby/spec@7241f39Benoit Daloze2019-12-271-2/+1
|
* Make more attempts to check for the precision of Process.timesBenoit Daloze2019-12-021-2/+2
| | | | | * Process.clock_getres specs use 10_000 but that's quite slow for the Process.times spec.
* Fix random failure on getusage-missing environmentsTakashi Kokubun2019-12-021-32/+4
| | | | | | | | | | | `* 1e6` makes a spurious result about floating point number's precision. ``` irb(main)[01:0]> 16.028 => 16.028 irb(main)[02:0]> (16.028 * 1e6) => 16027999.999999998 ```
* Debug random failure of ruby-spec on ci.rvm.jpTakashi Kokubun2019-12-011-4/+32
|
* Skip if getrusage is not supportedTakashi Kokubun2019-11-301-0/+5
| | | | | | | 1243255c3a36433041012b6107a5ac48658a0895 broke ci.rvm.jp tests like http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2445098. 253232c028a5565dbeecc05fab5e81b35ab58bcc works only if getrusage is supported.
* Update to ruby/spec@4eec3dcBenoit Daloze2019-11-3016-84/+164
|
* Exclude some clocks on armv8 tooBenoit Daloze2019-11-061-1/+1
| | | | * See https://bugs.ruby-lang.org/issues/16234#note-16
* Fix spawn_spec.rb for Travis arm64 environment.Jun Aruga2019-11-061-3/+13
| | | | | | | | | | | | | | | | | The process group id (/proc/[pid]/stat 5th field) is 0 in the Travis arm64 environment. This is a case where it is available. $ cat /proc/4543/stat 4543 (ruby) S 4525 4525 1384 34818 4525 4194304 37443 1754841 0 0 366 105 2291 391 20 0 3 0 1381328 1428127744 11475 18446744073709551615 94195983785984 94195986670225 140728933833312 0 0 0 0 0 1107394127 0 0 0 17 2 0 0 1 0 0 94195987686512 94195987708942 94196017770496 140728933835483 140728933835595 140728933835595 140728933842904 0 This is a case where it is not available in Travis arm64 environment. $ cat /proc/19179/stat 19179 (ruby) S 19160 0 0 0 -1 4194560 37618 1710547 313 163 770 665 5206 1439 20 0 2 0 17529566 1196347392 10319 18446744073709551615 187650811428864 187650815023116 281474602721280 0 0 0 0 4096 1107390031 0 0 0 17 22 0 0 0 0 0 187650815091456 187650815114064 187651414974464 281474602725080 281474602725211 281474602725211 281474602729420 0 See "man proc" for detail.
* Make test-all and test-spec runnable on AndroidYusuke Endoh2019-09-092-2/+2
| | | | | | Calling some syscall functions such as Dir.chroot causes SIGSYS instead of EPERM on Android. This change skips all tests that stops the test-suite run.
* armv7l and armv7l are the same platform, generalize to armv7Benoit Daloze2019-09-071-1/+1
| | | | [Bug #16007]
* Update to ruby/spec@875a09eBenoit Daloze2019-07-2715-107/+107
|
* Removed twisted testsNobuyoshi Nakada2019-07-161-8/+0
| | | | Why does only Process.daemon have these tests?
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-273-9/+7
|
* Make specs pass on OpenBSDJeremy Evans2019-06-061-3/+3
| | | | | | | | | | | | | | | | | Skip Process clockres specs that don't work on either FreeBSD or Solaris/AIX in addition to OpenBSD. Run most current String#crypt specs on non-OpenBSD, and add a new set of crypt specs for OpenBSD, which support bcrypt but not DES in crypt(3). Use @server.connect_address instead of @server.getsockname in some socket tests, as OpenBSD does not treat connection to all zero IPv4 or IPv6 addresses as connection to localhost. When trying to connect using UDP on an unsupported address family, allow Errno::EPROTONOSUPPORT in addition to Errno::EAFNOSUPPORT, as OpenBSD raises the former.
* Add notes for the Process#clock_getres specBenoit Daloze2019-05-241-1/+4
|
* Only exclude the failing clocks for Process.clock_getres specs on AIXBenoit Daloze2019-05-242-1/+8
| | | | * https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
* Skip the Process.clock_getres spec on AIXYusuke Endoh2019-05-241-1/+1
| | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz