Test::Unit Installation difficulty 
Author Message
 Test::Unit Installation difficulty

Hi,

I have tried installing Test::Unit and have had no success. The output is
below. The problem appears to be 'stack level too deep'. (I'm using Ruby
1.7.2 on Mac OS X if that matters)

Can anybody give me a hint as to what this might be.

Thanks,
Bob

hutch /usr/local/tmp/testunit-0.1.4 >> sudo ruby setup.rb install
setup.rb: entering install phase...
---> packages
---> packages/runit-compat
---> lib
mkdir -p /usr/local/lib/ruby/site_ruby/1.7/
install rubyunit.rb /usr/local/lib/ruby/site_ruby/1.7/
---> lib/runit
mkdir -p /usr/local/lib/ruby/site_ruby/1.7/runit
install assert.rb /usr/local/lib/ruby/site_ruby/1.7/runit
install error.rb /usr/local/lib/ruby/site_ruby/1.7/runit
install testcase.rb /usr/local/lib/ruby/site_ruby/1.7/runit
install testresult.rb /usr/local/lib/ruby/site_ruby/1.7/runit
install testsuite.rb /usr/local/lib/ruby/site_ruby/1.7/runit
install testunit-installed /usr/local/lib/ruby/site_ruby/1.7/runit
install topublic.rb /usr/local/lib/ruby/site_ruby/1.7/runit
---> lib/runit/cui
mkdir -p /usr/local/lib/ruby/site_ruby/1.7/runit/cui
install testrunner.rb /usr/local/lib/ruby/site_ruby/1.7/runit/cui
<--- lib/runit/cui
<--- lib/runit
<--- lib
<--- packages/runit-compat
---> packages/testunit
---> lib
Loaded suite TS_TestUnit
Started...
.
install failed
hook /usr/local/tmp/testunit-0.1.4/packages/testunit/lib/pre-install.rb
failed:
stack level too deep
try 'ruby setup.rb --help' for usage



Mon, 01 Nov 2004 20:24:58 GMT  
 Test::Unit Installation difficulty

B> I have tried installing Test::Unit and have had no success. The output is
B> below. The problem appears to be 'stack level too deep'. (I'm using Ruby
B> 1.7.2 on Mac OS X if that matters)

 Verify the value of stacksize with `ulimit -a'

Guy Decoux



Mon, 01 Nov 2004 20:40:35 GMT  
 Test::Unit Installation difficulty

Thank you. This was the problem.


Quote:

> B> I have tried installing Test::Unit and have had no success. The output is
> B> below. The problem appears to be 'stack level too deep'. (I'm using Ruby
> B> 1.7.2 on Mac OS X if that matters)

> Verify the value of stacksize with `ulimit -a'

> Guy Decoux



Tue, 02 Nov 2004 01:20:15 GMT  
 Test::Unit Installation difficulty

Quote:

>B> I have tried installing Test::Unit and have had no success. The output is
>B> below. The problem appears to be 'stack level too deep'. (I'm using Ruby
>B> 1.7.2 on Mac OS X if that matters)

>  Verify the value of stacksize with `ulimit -a'

>Guy Decoux

I just encountered this problem trying to install Test::Unit using
Ruby 1.6.7 on MacOS X 10.2. OS X does not seem to have a ulimit
command.

I found info on increasing the stack size on the tcsh man page. One
must log in as root -- an administrative account won't get the job
done. This resolved the problem:

root# limit stacksize
stacksize       512 kbytes
root# limit stacksize 1024
root# ruby setup.rb install
..

I still don't know how to change the default stack size in a way that
would affect apache and mod_ruby.

--
Adam Wildavsky  Extreme Programmer  Tameware, LLC



Sat, 26 Feb 2005 04:27:09 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Test::Unit::Mock: Mock objects for testing with Test::Unit

2. using test::unit for C++ unit tests

3. Test order in Test::Unit

4. Test order in Test::Unit

5. Automating UI tests (was Re: Art of Unit Testing)

6. Unit testing data; What to test

7. Test Tool for Unit Tests?

8. Having difficulty posting - Test

9. COM and unit tests

10. Report on Unit Testing MVP Presenters.

11. Newbie: Unit testing presenters?

12. Unit Test guidelines

 

 
Powered by phpBB® Forum Software