Skip to content

Commit 0b8869e

Browse files
committed
[GR-38530] Update Process methods to use module_function
PullRequest: truffleruby/3332
2 parents 73e5cb6 + 711cb74 commit 0b8869e

File tree

7 files changed

+148
-88
lines changed

7 files changed

+148
-88
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ New features:
77
Bug fixes:
88

99
* Fix `StringIO` to set position correctly after reading multi-byte characters (#2207, @aardvark179).
10+
* Update `Process` methods to use `module_function` (@bjfish).
1011

1112
Compatibility:
1213

spec/tags/truffle/methods_tags.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,5 @@ fails:Public methods on StringIO should not include marshal_dump
9494
fails:Public methods on StringIO should not include to_yaml_properties
9595
fails:Public methods on StringIO should not include yaml_initialize
9696
fails:Public methods on StringIO should include set_encoding_by_bom
97+
fails:Public methods on Process.singleton_class should include argv0
98+
fails:Public methods on Process.singleton_class should include getsid

spec/truffle/methods/BasicSocket.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ getpeername
88
getsockname
99
getsockopt
1010
local_address
11-
read_nonblock
1211
recv
1312
recv_nonblock
1413
recvmsg
@@ -19,4 +18,3 @@ sendmsg
1918
sendmsg_nonblock
2019
setsockopt
2120
shutdown
22-
write_nonblock
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
abort
2+
argv0
3+
clock_getres
4+
clock_gettime
5+
daemon
6+
detach
7+
egid
8+
egid=
9+
euid
10+
euid=
11+
exec
12+
exit
13+
exit!
14+
fork
15+
getpgid
16+
getpgrp
17+
getpriority
18+
getrlimit
19+
getsid
20+
gid
21+
gid=
22+
groups
23+
groups=
24+
initgroups
25+
kill
26+
last_status
27+
maxgroups
28+
maxgroups=
29+
pid
30+
ppid
31+
setpgid
32+
setpgrp
33+
setpriority
34+
setproctitle
35+
setrlimit
36+
setsid
37+
spawn
38+
times
39+
uid
40+
uid=
41+
wait
42+
wait2
43+
waitall
44+
waitpid
45+
waitpid2

spec/truffle/methods_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
Array BasicObject Binding Class Complex Complex Dir ENV.singleton_class
2424
Encoding Enumerable Enumerator Enumerator::Lazy Exception FalseClass Fiber
2525
File FileTest Float GC GC.singleton_class Hash IO Integer Kernel Marshal MatchData Math Method
26-
Module Mutex NilClass Numeric Object ObjectSpace Proc Process Queue Random
26+
Module Mutex NilClass Numeric Object ObjectSpace Proc Process Process.singleton_class Queue Random
2727
Random::Formatter Random.singleton_class Range Rational Regexp Signal
2828
SizedQueue String Struct Symbol SystemExit Thread TracePoint TrueClass
2929
UnboundMethod Warning

0 commit comments

Comments
 (0)