From: Hugh Sasse Staff Elec Eng Date: 2003-02-06T23:38:47+09:00 Subject: Probs with 1.8.0 on Solaris 2.9 I got a failure with yesterday's snapshot of ruby 1.8.0. I asked Matz about this, and he asked me to post to the list to get confirmation from elsewhere about this behaviour. It is definately repeatable, the build script and its results are below. This is on a Sparc Solaris 2.9 system, using the "Sun extras" supplied gcc off their CD. Hugh #!/bin/sh CC=gcc HERE=/home/hgs/ruby RUBYBUILD=$HERE/ruby-snapshot RUBYHOME=/home/hgs/RUBY-SNAPSHOT RUBY=$RUBYHOME/bin/ruby STABLERUBY=/usr/local/bin/ruby RUBYUNITHOME=$HERE/rubyunit-0.5.4-02 RUBICON=$HERE/Rubicon/rubicon EDIT=$HERE/sedscript.rb cat $HERE/build_ruby.sh > $HERE/test_results.tmp echo '---------' >> $HERE/test_results.tmp cd $RUBYBUILD ./configure --prefix=$RUBYHOME gmake clean gmake gmake test | tail -1 >> $HERE/test_results.tmp echo '---------' >> $HERE/test_results.tmp gmake install cd $RUBYUNITHOME $RUBY install.rb cd $RUBICON echo '---------' >> $HERE/test_results.tmp cat $EDIT >> $HERE/test_results.tmp echo '---------' >> $HERE/test_results.tmp $CC -v >> $HERE/test_results.tmp 2>&1 $RUBY -v >> $HERE/test_results.tmp uname -a >> $HERE/test_results.tmp echo '---------' >> $HERE/test_results.tmp gmake -f GNUmakefile >> $HERE/test_results.tmp $STABLERUBY $EDIT $HERE/test_results.tmp > $HERE/test_results exit --------- test succeeded --------- --------- #!/usr/local/bin/ruby # Ruby replacement for the sed script I could not get to work. filter = false filtering_finished = false ARGF.readlines.each { |line| unless filtering_finished if line =~ /^All Tests/ filter = true elsif line =~ /^\s+All \d+ files/ filter = false filtering_finished = true end end if filter if line =~ /FAIL|====|All/ print line end else print line end } --------- Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/specs gcc version 2.95.3 20010315 (release) ruby 1.8.0 (2003-02-04) [sparc-solaris2.9] SunOS neelix 5.9 Generic sun4u sparc SUNW,Ultra-250 --------- /home/hgs/RUBY180/bin/ruby AllTests.rb ======================================================================== All Tests Test Results V0.3.5 ======================================================================== Dir FAIL 21 78 2 IO FAIL 53 1236 2 Math FAIL 2 59 1 Module FAIL 25 92 1 Time FAIL 41 1687 5 ======================================================================== All 72 files FAIL 922 22158 10 1 ======================================================================== Failure Report ======================================================================== TestDir: -------- ....Expected: "<[]> " ....But was: "<[\"builtin/_test/_file1\", \"builtin/_test/_file2\"]>" ....Expected: "<[]> " ....But was: "<[\"builtin/_test/_file1\", \"builtin/_test/_file2\"]>" ------------------------------------------------------------ TestIO: ------- ./builtin/TestIO.rb:654:in `test_pos='(TestIO) ./builtin/TestIO.rb:653:in `each' ./builtin/TestIO.rb:653:in `test_pos=' ./builtin/TestIO.rb:649:in `open' ./builtin/TestIO.rb:649:in `test_pos=' ....Expected: "<0> " ....But was: "<95>" ./builtin/TestIO.rb:254:in `test_s_select'(TestIO) ./builtin/TestIO.rb:252:in `open' ./builtin/TestIO.rb:252:in `test_s_select' ....Expected: "<[[\#], [\#, \#], []]> " ....But was: "<[[\#], [\#, \#], [\#, \#]]>" ------------------------------------------------------------ TestModule: ----------- ./builtin/TestModule.rb:199:in `test_instance_methods'(TestModule) ....Expected: "<[\"aClass\"]> " ....But was: "<[\"aClass2\", \"aClass\"]>" ------------------------------------------------------------ TestTime: --------- ./builtin/TestTime.rb:203:in `test_gmtime'(TestTime) ....The condition is ./builtin/TestTime.rb:266:in `test_localtime'(TestTime) ....The condition is ./builtin/TestTime.rb:417:in `test_s_gm'(TestTime) ....The condition is ./builtin/TestTime.rb:436:in `test_s_local'(TestTime) ....The condition is ./builtin/TestTime.rb:458:in `test_s_mktime'(TestTime) ....The condition is ======================================================================== Error Report ======================================================================== TestMath: --------- ./builtin/TestMath.rb:118:in `log'(TestMath) ./builtin/TestMath.rb:118:in `test_fns' ....Result too large - "log" ========================================================================