1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/etc
mame 5d0103f973 spec/ruby/library/etc/getlogin_spec.rb: Use logname as an expected result
It had used `id -un`, but it is not always equal to `Etc.getlogin`.
`id` returns the current user of the process, and `Etc.getlogin` returns
the user name logged in on the controlling terminal of the process.

This change uses `logname` by default.  `id` remains as a fallback since
there seem to be some platforms where `logname` is not available:
49576b417c

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-10 13:30:22 +00:00
..
shared
endgrent_spec.rb
endpwent_spec.rb
getgrent_spec.rb
getgrgid_spec.rb
getgrnam_spec.rb
getlogin_spec.rb spec/ruby/library/etc/getlogin_spec.rb: Use logname as an expected result 2018-01-10 13:30:22 +00:00
getpwent_spec.rb
getpwnam_spec.rb
getpwuid_spec.rb
group_spec.rb
nprocessors_spec.rb Update to ruby/spec@bacedc5 2017-12-01 15:41:50 +00:00
struct_group_spec.rb
struct_passwd_spec.rb