aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/file
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-05-28 22:41:48 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-05-28 22:41:48 +0200
commita66bc2c01194a9c017c874a30db5b3b6bd95e966 (patch)
tree598d6375b44fd86f90c3477c73086f6fcf08d76c /spec/ruby/core/file
parentd070523e7be4b95914adeef9a10401fba7718c5a (diff)
downloadruby-a66bc2c01194a9c017c874a30db5b3b6bd95e966.tar.gz
Update to ruby/spec@9a501a8
Diffstat (limited to 'spec/ruby/core/file')
-rw-r--r--spec/ruby/core/file/expand_path_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/core/file/expand_path_spec.rb b/spec/ruby/core/file/expand_path_spec.rb
index 90aa44e2c4..1d972023a3 100644
--- a/spec/ruby/core/file/expand_path_spec.rb
+++ b/spec/ruby/core/file/expand_path_spec.rb
@@ -225,6 +225,8 @@ platform_is_not :windows do
user = ENV.delete("USER")
begin
Etc.getlogin != nil
+ rescue
+ false
ensure
ENV["USER"] = user
end