# Test-all test suite fails upon Ruby 1.8.5 compilation

**URL:** <https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964>\
**Category:** Ruby\
**Created:** [August 1, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964 "2007-08-01T15:39:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 1, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/1 "2007-08-01T15:39:57Z")

</div>

Hi!

I’m using this:

[http://www.rubywizards.com/viewtopic.php?pid=19](http://www.rubywizards.com/viewtopic.php?pid=19)

To compile Ruby 1.8.5 for Ubuntu 6.06 (since apt-get installs 1.8.4 and  
1.8.6 has some threading problems).

I follow the steps in tutorial exactly except that I don’t run as root.

During compilation there is some warnings about “Pointer Signedness”,  
but Matz says that this is nothing to worry about…

[http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/187813?187736-188913](http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/187813?187736-188913)

ok… when I run make test-all, I get:  
1436 tests, 13467 assertions, 3 failures, 50 errors

some of them:

1. Error:  
test\_ping(WSDL::SimpleType::TestSimpleType):  
NoMethodError: undefined method `shutdown' for nil:NilClass ./wsdl/simpletype/test_simpletype.rb:61:in `teardown\_server’  
./wsdl/simpletype/test\_simpletype.rb:56:in `teardown’

2. Error:  
test\_ping\_id(WSDL::SimpleType::TestSimpleType):  
Errno::EADDRINUSE: Address already in use - bind(2)  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in `initialize' /home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in `new’  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in  
`create_listeners' /home/david/local/ruby-1.8.5/lib/webrick/utils.rb:70:in `each’  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:70:in  
`create_listeners' /home/david/local/ruby-1.8.5/lib/webrick/server.rb:75:in `listen’  
/home/david/local/ruby-1.8.5/lib/webrick/server.rb:63:in  
`initialize' /home/david/local/ruby-1.8.5/lib/webrick/httpserver.rb:24:in `initialize’  
/home/david/local/ruby-1.8.5/lib/soap/rpc/httpserver.rb:33:in `new' /home/david/local/ruby-1.8.5/lib/soap/rpc/httpserver.rb:33:in `initialize’  
/home/david/local/ruby-1.8.5/lib/soap/rpc/standaloneServer.rb:22:in  
`initialize' ./wsdl/simpletype/test_simpletype.rb:42:in `new’  
./wsdl/simpletype/test\_simpletype.rb:42:in `setup_server' ./wsdl/simpletype/test_simpletype.rb:37:in `setup’

3. Error:  
test\_ping\_id(WSDL::SimpleType::TestSimpleType):  
NoMethodError: undefined method `shutdown' for nil:NilClass ./wsdl/simpletype/test_simpletype.rb:61:in `teardown\_server’  
./wsdl/simpletype/test\_simpletype.rb:56:in `teardown’

4. Error:  
test\_soapbodyparts(WSDL:🧼:TestSOAPBodyParts):  
Errno::EADDRINUSE: Address already in use - bind(2)  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in `initialize' /home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in `new’  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:73:in  
`create_listeners' /home/david/local/ruby-1.8.5/lib/webrick/utils.rb:70:in `each’  
/home/david/local/ruby-1.8.5/lib/webrick/utils.rb:70:in  
`create_listeners' /home/david/local/ruby-1.8.5/lib/webrick/server.rb:75:in `listen’  
/home/david/local/ruby-1.8.5/lib/webrick/server.rb:63:in  
`initialize' /home/david/local/ruby-1.8.5/lib/webrick/httpserver.rb:24:in `initialize’  
/home/david/local/ruby-1.8.5/lib/soap/rpc/httpserver.rb:33:in `new' /home/david/local/ruby-1.8.5/lib/soap/rpc/httpserver.rb:33:in `initialize’  
/home/david/local/ruby-1.8.5/lib/soap/rpc/standaloneServer.rb:22:in  
`initialize' ./wsdl/soap/test_soapbodyparts.rb:39:in `new’  
./wsdl/soap/test\_soapbodyparts.rb:39:in `setup_server' ./wsdl/soap/test_soapbodyparts.rb:34:in `setup’

5. Error:  
test\_soapbodyparts(WSDL:🧼:TestSOAPBodyParts):  
NoMethodError: undefined method `shutdown' for nil:NilClass ./wsdl/soap/test_soapbodyparts.rb:60:in `teardown\_server’  
./wsdl/soap/test\_soapbodyparts.rb:55:in `teardown’

What gives?

Thank you!

david

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 1, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/2 "2007-08-01T17:35:25Z")

</div>

update:

I tried it at two different systems (Ubuntu 6.06 and 7.04) and the  
result is the same… maybe the tests are not in sync… ?

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 1, 2007, 6:22pm UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/3 "2007-08-01T18:22:18Z")

</div>

update 2:

After reading this:

- Run ‘make install’ _before_ running ‘make test-all’. The test  
suites rely on an installed copy of Ruby to run.

I got this:  
1436 tests, 13577 assertions, 0 failures, 0 errors

🙂

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 2, 2007, 11:58am UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/4 "2007-08-02T11:58:56Z")

</div>

Hi, I don’t get the errors anymore because I installed ruby before  
running the tests. That was the reason for errors because test suite  
needs to have ruby installed!  
thank you

NAKAMURA, Hiroshi wrote:

> -----BEGIN PGP SIGNED MESSAGE-----  
> Hash: SHA1
> 
> Hi,

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 2, 2007, 3:27am UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/5 "2007-08-02T03:27:47Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

D. Krmpotic wrote:

> ok… when I run make test-all, I get:  
> 1436 tests, 13467 assertions, 3 failures, 50 errors
> 
> some of them:
> 
> 1. Error:  
> test\_ping(WSDL::SimpleType::TestSimpleType):  
> NoMethodError: undefined method `shutdown' for nil:NilClass ./wsdl/simpletype/test_simpletype.rb:61:in`teardown\_server’  
> ./wsdl/simpletype/test\_simpletype.rb:56:in `teardown’

Above ‘shutdown’ problem is caused by previous error. Can you show me  
the beginning part of soap/\* and wsdl/\* errors?

Regards,  
// NaHi

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRrEykh9L2jg5EEGlAQIjIAf/ccfqcyghrYz3kjSQZQMAiDkWCb7mrh3l  
X+VyP/jn6qPDwhc3EHrSDa1u/1EdjKFAiuC5tEYS8rpo6zCyiCJzLQRJmx56ZY7z  
F561SirjToAjLvSDTNVkObKxKLUfITKpGmQouojKjBiTp2tzwjilIrl4UnKqvqRC  
aHDeuc+aTsLsM86ZHf05nwa09+Q8uZyzRRrO/StH8joJE3Ftibvcr+D3U+UHzBeM  
uIkEfj7xiV0YTlpzJg8cHRTen91sg90dGxiK6eIAg0ZL+foh4bUbRflan5xR9KEr  
ErE5KFkUNmXZTN5v9yhfWfiWNihcQ2xZg4Bz4kVq/qzHlMKeqMSzFQ==  
=+LVa  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 3, 2007, 3:21am UTC](https://www.ruby-forum.com/t/test-all-test-suite-fails-upon-ruby-1-8-5-compilation/110964/6 "2007-08-03T03:21:41Z")

</div>

Hi,

I missed the second post of yours. Thanks for replying.

D. Krmpotic wrote:

> Hi, I don’t get the errors anymore because I installed ruby before  
> running the tests. That was the reason for errors because test suite  
> needs to have ruby installed!

Some soap4r tests depend on installed ruby for testing CGI program  
execution. I think it’s not good for ‘make test-all’ but it’s hardly  
fixable.

Regards,  
// NaHi
