setsockopt test fails on both ruby1.8 and 1.9 #377

Closed
michelboaventura opened this Issue Nov 6, 2012 · 5 comments

Comments

Projects
None yet
3 participants
@michelboaventura

Using ruby 1.9.3-p194 and ruby 1.8.7p370 to run the gem tests fails at the same test:

  1) Error:
test_set_sock_opt(TestSetSockOpt):
Errno::EACCES: Permission denied - setsockopt

I running rake 0.9.2.2 on a Gentoo Linux box.

@ibc

This comment has been minimized.

Show comment
Hide comment
@ibc

ibc Nov 6, 2012

Contributor

Run the test as root. Maybe normal users don't have permission for setting socket options.

Contributor

ibc commented Nov 6, 2012

Run the test as root. Maybe normal users don't have permission for setting socket options.

@michelboaventura

This comment has been minimized.

Show comment
Hide comment
@michelboaventura

michelboaventura Nov 7, 2012

Run as root fix the test, but would be great if we could fix this, so that root is not needed to run the tests. Maybe skip the test if on linux and no root?

Run as root fix the test, but would be great if we could fix this, so that root is not needed to run the tests. Maybe skip the test if on linux and no root?

@michelboaventura

This comment has been minimized.

Show comment
Hide comment
@michelboaventura

michelboaventura Nov 8, 2012

If you think this is useful, I can send a push request to skip this test.

If you think this is useful, I can send a push request to skip this test.

@tmm1

This comment has been minimized.

Show comment
Hide comment
@tmm1

tmm1 Nov 8, 2012

Contributor

These tests pass for me on a Debian machine without root.

Contributor

tmm1 commented Nov 8, 2012

These tests pass for me on a Debian machine without root.

@tmm1 tmm1 closed this in b96b736 Nov 8, 2012

@michelboaventura

This comment has been minimized.

Show comment
Hide comment
@michelboaventura

michelboaventura Nov 8, 2012

This fix the issue. Thank you!

This fix the issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment