[ruby-cvs:73529] normal:r66428 (trunk): Fix test failure if ENV["USER"] doesn't match Process.euid

normal at ruby-lang.org normal at ruby-lang.org
Tue Dec 18 07:48:57 JST 2018


normal	2018-12-18 07:48:57 +0900 (Tue, 18 Dec 2018)

  New Revision: 66428

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66428

  Log:
    Fix test failure if ENV["USER"] doesn't match Process.euid
    
    When dropping privileges to run tests, ENV["USER"] could be set
    to a user that doesn't match Process.euid, which causes this
    test to fail with Errno::EPERM.  Try to get the name for the
    current euid, and only fallback to ENV["USER"] if that doesn't
    work.

  Modified files:
    trunk/test/ruby/test_process.rb


More information about the ruby-cvs mailing list