Project

General

Profile

Actions

Bug #9363

closed

test_http.rb and others must be run as root

Added by headius (Charles Nutter) about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:59555]

Description

It seems like test/net/test_http.rb (and perhaps other network-related tests) must be run as root to test properly...or I am not seeing how to run them without using privileged ports.

We would like to use these tests in JRuby, and currently that's not possible since they bind to privileged.

If this is the case, we should fix the tests.

If this is not the case, please help me figure out how to run these tests without restricted ports.

Updated by headius (Charles Nutter) about 10 years ago

  • Status changed from Open to Rejected

Sorry, ignore this. I discovered that it was a bug in JRuby's BasicSocket.for_fd logic causing it to try to bind to the fd as if it were a port.

Actions

Also available in: Atom PDF

Like0
Like0