From holmberg at rubyforge.org Mon Jan 3 09:48:51 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 09:48:53 2005 Subject: [Rubytests-commit] CVSROOT loginfo Message-ID: <200501031448.j03EmpdS013086@rubyforge.org> Update of /var/cvs/rubytests/CVSROOT In directory rubyforge.org:/tmp/cvs-serv13059 Modified Files: loginfo Log Message: An extra commit just to test the forwarding to the list rubytests-commit@rubyforge.org. From holmberg at rubyforge.org Mon Jan 3 09:53:20 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 09:53:21 2005 Subject: [Rubytests-commit] CVSROOT loginfo Message-ID: <200501031453.j03ErKdS013161@rubyforge.org> Update of /var/cvs/rubytests/CVSROOT In directory rubyforge.org:/tmp/cvs-serv13154 Modified Files: loginfo Log Message: Removed holmberg@iar.se. Should get these mails via the list. Index: loginfo =================================================================== RCS file: /var/cvs/rubytests/CVSROOT/loginfo,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** loginfo 3 Jan 2005 14:48:49 -0000 1.6 --- loginfo 3 Jan 2005 14:53:18 -0000 1.7 *************** *** 26,28 **** #DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog #---DEFAULT /var/cvs/commitmailer.sh %s tom@infoether.com ! DEFAULT /usr/local/bin/syncmail %s holmberg@iar.se headius@headius.com rubytests-commit@rubyforge.org --- 26,28 ---- #DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog #---DEFAULT /var/cvs/commitmailer.sh %s tom@infoether.com ! DEFAULT /usr/local/bin/syncmail %s headius@headius.com rubytests-commit@rubyforge.org From holmberg at rubyforge.org Mon Jan 3 09:53:55 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 09:53:57 2005 Subject: [Rubytests-commit] CVSROOT loginfo Message-ID: <200501031453.j03ErtdS013176@rubyforge.org> Update of /var/cvs/rubytests/CVSROOT In directory rubyforge.org:/tmp/cvs-serv13170 Modified Files: loginfo Log Message: Another "dummy" commit, just to test the commit list. From headius at rubyforge.org Mon Jan 3 10:02:04 2005 From: headius at rubyforge.org (headius@rubyforge.org) Date: Mon Jan 3 10:02:06 2005 Subject: [Rubytests-commit] CVSROOT loginfo Message-ID: <200501031502.j03F24dS014672@rubyforge.org> Update of /var/cvs/rubytests/CVSROOT In directory rubyforge.org:/tmp/cvs-serv14668 Modified Files: loginfo Log Message: removing my email from loginfo Index: loginfo =================================================================== RCS file: /var/cvs/rubytests/CVSROOT/loginfo,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** loginfo 3 Jan 2005 14:53:53 -0000 1.8 --- loginfo 3 Jan 2005 15:02:02 -0000 1.9 *************** *** 26,28 **** #DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog #---DEFAULT /var/cvs/commitmailer.sh %s tom@infoether.com ! DEFAULT /usr/local/bin/syncmail %s headius@headius.com rubytests-commit@rubyforge.org --- 26,28 ---- #DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog #---DEFAULT /var/cvs/commitmailer.sh %s tom@infoether.com ! DEFAULT /usr/local/bin/syncmail %s rubytests-commit@rubyforge.org From holmberg at rubyforge.org Mon Jan 3 10:47:34 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 10:47:35 2005 Subject: [Rubytests-commit] rubicon/builtin TestKernel.rb Message-ID: <200501031547.j03FlYdS015701@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv15582/builtin Modified Files: TestKernel.rb Log Message: Removed old explicit "fail" call on Windows in "test_s_open2". The call said: MsWin32.only do fail "This hangs the tests as the background process never terminates" end This was probably true before, but with Ruby 1.8.2 the testcase seem to work (no hanging on Windows). So there is no need to handle Windows separately any more. Index: TestKernel.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestKernel.rb,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TestKernel.rb 30 Nov 2004 08:16:31 -0000 1.9 --- TestKernel.rb 3 Jan 2005 15:47:32 -0000 1.10 *************** *** 1320,1327 **** # WRITE - MsWin32.only do - fail "This hangs the tests as the background process never terminates" - end - p = open("|#$interpreter -e 'puts readlines' >#@file", "w") begin --- 1320,1323 ---- From holmberg at rubyforge.org Mon Jan 3 11:28:09 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 11:28:12 2005 Subject: [Rubytests-commit] rubicon/builtin TestDir.rb Message-ID: <200501031628.j03GS9dS018382@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv18320/builtin Modified Files: TestDir.rb Log Message: Made test of error case for "Dir.chdir {}" pass on Solaris too. See comments in the code for a detailed explanation. It has to do with how getcwd(3) works on Solaris. Index: TestDir.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestDir.rb,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TestDir.rb 27 Dec 2004 19:01:38 -0000 1.11 --- TestDir.rb 3 Jan 2005 16:28:07 -0000 1.12 *************** *** 138,143 **** --- 138,159 ---- end + # The following test was designed to test the behaviour of "Dir.chdir {...}" + # in the case of an error in the first chdir(2) call. Then no second call + # to chdir(2) should be done (no restore of current directory is needed). + # + # But the test doesn't work on Solaris. There a getcwd(3) call needs access + # to all parent directories to do its job. And Ruby need to save the old + # current directory before attempting the first chdir(2). + # + # For now this test is left here, but adjusted for Solaris. + # IF MORE TROUBLE OCCURS IN THE FUTURE, THE TEST COULD BE REMOVED + # ALTOGETHER (it is not very important). Or maybe rewritten to not depend + # on platform specific behaviour. + # + # Here follows the actual test, with its comments: + # # chdir with block to non-existing dir, and a directory above that # is unaccessible => we should still get Errno::ENOENT. + # Dir.chdir("_test") do Dir.mkdir("inaccessible") *************** *** 147,151 **** begin File.chmod(0, "..") # make "inaccessible" live up to its name ! assert_raises(Errno::ENOENT) do Dir.chdir("non-existing") do # never reached --- 163,174 ---- begin File.chmod(0, "..") # make "inaccessible" live up to its name ! exception = if $os == Solaris ! # Ruby calls getcwd(3), and that call needs access ! # to all parent directories on Solaris. ! Errno::EACCES ! else ! Errno::ENOENT ! end ! assert_raises(exception) do Dir.chdir("non-existing") do # never reached From holmberg at rubyforge.org Mon Jan 3 12:27:13 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 12:27:15 2005 Subject: [Rubytests-commit] rubicon/builtin TestFileTest.rb Message-ID: <200501031727.j03HRDdS020911@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv20794/builtin Modified Files: TestFileTest.rb Log Message: Transform a "Windows.known_problem" section of test code to a "Windows.dont" section. Reason: the tests are only interesting on UN*X where the concept of the "root" user is available. geteuid(2) is faked in Ruby on Windows and therefore the test is useless there. Index: TestFileTest.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestFileTest.rb,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestFileTest.rb 13 Feb 2004 15:35:13 -0000 1.1.1.1 --- TestFileTest.rb 3 Jan 2005 17:27:11 -0000 1.2 *************** *** 159,166 **** end ! Windows.known_problem do ! assert_equal(Process.euid == 0, test(?w, filew), "test(?#{t.chr}, #{filew})") ! assert_equal(Process.euid == 0, FileTest.send(:writable?, filew), ! "FileTest.writable?(#{filew})") end --- 159,168 ---- end ! Windows.dont do ! # Windows has no superuser semantics like UN*X, so we skip these tests. ! # TODO: check if these tests actually do the right thing. ! assert_equal(Process.euid == 0, test(?w, filew), "test(?#{t.chr}, #{filew})") ! assert_equal(Process.euid == 0, FileTest.send(:writable?, filew), ! "FileTest.writable?(#{filew})") end From holmberg at rubyforge.org Mon Jan 3 12:42:09 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Mon Jan 3 12:42:12 2005 Subject: [Rubytests-commit] rubicon/builtin TestFile__Stat.rb Message-ID: <200501031742.j03Hg9dS021216@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv21162/builtin Modified Files: TestFile__Stat.rb Log Message: Change test of "write only" permissions on files to handle the fact that this works differently on Windows. As the Windows documentation of chmod(2) says: Note that all files are always readable; it is not possible to give write-only permission. Index: TestFile__Stat.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestFile__Stat.rb,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TestFile__Stat.rb 30 Nov 2004 09:22:02 -0000 1.4 --- TestFile__Stat.rb 3 Jan 2005 17:42:07 -0000 1.5 *************** *** 228,233 **** def test_readable? try(:readable?, @file1, true) ! Windows.known_problem do ! File.chmod(0222, @file1) try(:readable?, @file1, false) end --- 228,240 ---- def test_readable? try(:readable?, @file1, true) ! File.chmod(0222, @file1) ! if $os == MsWin32 ! # The Windows documentation for chmod(2) says: ! # ! # Note that all files are always readable; ! # it is not possible to give write-only permission. ! # ! try(:readable?, @file1, true) ! else try(:readable?, @file1, false) end From holmberg at rubyforge.org Wed Jan 5 05:19:07 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Wed Jan 5 05:19:10 2005 Subject: [Rubytests-commit] rubicon rubicon_tests.rb Message-ID: <200501051019.j05AJ7dS024297@rubyforge.org> Update of /var/cvs/rubytests/rubicon In directory rubyforge.org:/tmp/cvs-serv24087 Modified Files: rubicon_tests.rb Log Message: Adjusted _fstat_map and _stat_map : Windows ---> WindowsNative. This change makes a Cygwin built Ruby pass more stat(2) related tests. The change seems right since Cygwin actually tries to fool us that it is some kind of UN*X. Index: rubicon_tests.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/rubicon_tests.rb,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** rubicon_tests.rb 30 Nov 2004 08:22:14 -0000 1.10 --- rubicon_tests.rb 5 Jan 2005 10:19:05 -0000 1.11 *************** *** 75,79 **** # def _fstat_map(mode) ! if $os <= Windows mode |= 0444 if (mode & 0200) != 0 --- 75,79 ---- # def _fstat_map(mode) ! if $os <= WindowsNative mode |= 0444 if (mode & 0200) != 0 *************** *** 96,100 **** def _stat_map(mode) mode = _fstat_map(mode) ! if $os <= Windows mode &= ~0022 end --- 96,100 ---- def _stat_map(mode) mode = _fstat_map(mode) ! if $os <= WindowsNative mode &= ~0022 end From holmberg at rubyforge.org Fri Jan 7 07:23:40 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Fri Jan 7 07:23:41 2005 Subject: [Rubytests-commit] rubicon/builtin TestDir.rb Message-ID: <200501071223.j07CNedS029018@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv28756/builtin Modified Files: TestDir.rb Log Message: Removed the regression test for an error that existed in Ruby 1.8.x somewhere around sep. 2004. The test verified that Dir.chdir {...} didn't try to restore the current directory if the first chdir(2) call failed. The test was *too complicated*, and it didn't work on all platforms. Index: TestDir.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestDir.rb,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** TestDir.rb 3 Jan 2005 16:28:07 -0000 1.12 --- TestDir.rb 7 Jan 2005 12:23:38 -0000 1.13 *************** *** 138,184 **** end - # The following test was designed to test the behaviour of "Dir.chdir {...}" - # in the case of an error in the first chdir(2) call. Then no second call - # to chdir(2) should be done (no restore of current directory is needed). - # - # But the test doesn't work on Solaris. There a getcwd(3) call needs access - # to all parent directories to do its job. And Ruby need to save the old - # current directory before attempting the first chdir(2). - # - # For now this test is left here, but adjusted for Solaris. - # IF MORE TROUBLE OCCURS IN THE FUTURE, THE TEST COULD BE REMOVED - # ALTOGETHER (it is not very important). Or maybe rewritten to not depend - # on platform specific behaviour. - # - # Here follows the actual test, with its comments: - # - # chdir with block to non-existing dir, and a directory above that - # is unaccessible => we should still get Errno::ENOENT. - # - Dir.chdir("_test") do - Dir.mkdir("inaccessible") - Dir.mkdir("inaccessible/subdir") - Dir.chdir("inaccessible/subdir") do - old_mode = File.stat("..").mode - begin - File.chmod(0, "..") # make "inaccessible" live up to its name - exception = if $os == Solaris - # Ruby calls getcwd(3), and that call needs access - # to all parent directories on Solaris. - Errno::EACCES - else - Errno::ENOENT - end - assert_raises(exception) do - Dir.chdir("non-existing") do - # never reached - end - end - ensure - File.chmod(old_mode, "..") # restore "inaccessible" - end - end - end - MsWin32.only do a_win_abs_path = (ENV["SystemRoot"] || "C:/Program Files").dup --- 138,141 ---- From holmberg at rubyforge.org Fri Jan 7 07:39:05 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Fri Jan 7 07:39:08 2005 Subject: [Rubytests-commit] rubicon/builtin TestIO.rb Message-ID: <200501071239.j07Cd5dS029249@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv29184/builtin Modified Files: TestIO.rb Log Message: Added recognition of MacOS when deciding what to expect from select(2). MacOS seem to work like Solaris when it comes to how regular files are handled in the "exception file descriptors" parameter to select(2). Maybe this test in Rubicon is to detailed. If we get more problems on other platforms, we should probably say that *any* of the possible answers is OK on *any* of the platforms. Index: TestIO.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestIO.rb,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TestIO.rb 3 Jan 2005 12:13:27 -0000 1.9 --- TestIO.rb 7 Jan 2005 12:39:03 -0000 1.10 *************** *** 271,275 **** case ! when $os == Solaris # select is documented to work this way on Solaris. # From the select(3C) man page: --- 271,275 ---- case ! when $os == Solaris || $os == MacOS # select is documented to work this way on Solaris. # From the select(3C) man page: *************** *** 279,282 **** --- 279,284 ---- # conditions. # + # MacOS seem to work the same way. + # assert_equal( [file], res[2] ) From holmberg at rubyforge.org Fri Jan 7 07:53:45 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Fri Jan 7 07:53:46 2005 Subject: [Rubytests-commit] rubicon/builtin TestIO.rb Message-ID: <200501071253.j07CrjdS029684@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv29642/builtin Modified Files: TestIO.rb Log Message: Cygwin is more like a UN*X than like Windows when it comes to how IO.popen works. The change was done in the #test_pid test method. Index: TestIO.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestIO.rb,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TestIO.rb 7 Jan 2005 12:39:03 -0000 1.10 --- TestIO.rb 7 Jan 2005 12:53:42 -0000 1.11 *************** *** 673,680 **** assert_nil($stdin.pid) pipe = nil ! Unix.or_variant do pipe = IO.popen("exec #$interpreter -e 'p $$'", "r") ! end ! Unix.dont do pipe = IO.popen("#$interpreter -e 'p $$'", "r") end --- 673,679 ---- assert_nil($stdin.pid) pipe = nil ! if $os <= Unix || $os == Cygwin pipe = IO.popen("exec #$interpreter -e 'p $$'", "r") ! else pipe = IO.popen("#$interpreter -e 'p $$'", "r") end From holmberg at rubyforge.org Fri Jan 7 08:23:27 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Fri Jan 7 08:23:29 2005 Subject: [Rubytests-commit] rubicon ChangeLog.old release_package.rb Message-ID: <200501071323.j07DNRdS031782@rubyforge.org> Update of /var/cvs/rubytests/rubicon In directory rubyforge.org:/tmp/cvs-serv31618 Modified Files: release_package.rb Added Files: ChangeLog.old Log Message: We have started to maintain the ChangeLog with "cvs2cl" instead of relying on each commiter to also update the ChangeLog. The "old" ChangeLog contained entries from the time Rubicon existed at ruby-lang.org, and we don't want to loose these entries. Therefore the existing ChangeLog was copied to ChangeLog.old and comitted under that name. After this was done, we intend to maintain the ChangeLog with a command like: $ cvs2cl -S --ignore ChangeLog So before a release, this command is run and the new ChangeLog is commited. The old file "ChangeLog.old" should never change after the first version has been commited. Index: release_package.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/release_package.rb,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** release_package.rb 6 Apr 2004 11:43:52 -0000 1.1 --- release_package.rb 7 Jan 2005 13:23:25 -0000 1.2 *************** *** 122,125 **** --- 122,126 ---- COPYING ChangeLog + ChangeLog.old GNUmakefile Makefile --- NEW FILE: ChangeLog.old --- 2004-04-06 Simon Strandgaard * release_package.rb: adapted some release package code from my iterator project. outputs: tgz, zip. * builtin/StringBase.rb: added tests of #casecmp, #insert, #lstrip, #lstrip!, #match, #rstrip, #rstrip!, #to_sym. * builtin/HashBase.rb: added tests of #default_proc, #merge, #merge!, #values_at. 2004-04-05 Simon Strandgaard * builtin/TestEnumerable.rb: added tests of #all?, #any?, #inject, #partition, #sort_by, #zip. * builtin/ArrayBase.rb: added tests for #fetch, #insert, #transpose and #values_at. * builtin/TestKernel.rb: exercise require in conjunction with pathchange, when it won't load the file. see [ruby-talk:94646]. * builtin/TestException.rb: exercise the pre1.9 bug in Exception#set_backtrace. See [ruby-talk:96273]. * rubicon.rb: made local const VERSION, so that Ruby-1.9x's RUBY_VERSION is used when available. 2004-02-16 Simon Strandgaard * builtin/TestKernel.rb: default value for #exit! has changed with Ruby-1.8.1, from -1 into +1. * builtin/TestModule.rb, builtin/TestModulePrivate.rb: when invoking AllTests.rb then there was introduced a PP::ObjectMixin instance. * builtin/TestFile.rb: did implicit comparison between Time and Fixnum. * language/TestAssignment.rb, language/TestBlocksProcs.rb: The prefix start which expands on assignment policy has changed with Ruby-1.8. I have added a check for this. * builtin/TestProc.rb: specialcase where arity has changed in Ruby-1.8. 2004-02-15 Simon Strandgaard * builtin/TestModule.rb, builtin/TestModulePrivate.rb: the default value of #instance_methods has been changed at some point before Ruby-1.8.1. * builtin/ArrayBase.rb, builtin/HashBase.rb: the index kindof behavier of #select seems to have been disabled, so this feature isn't available in Ruby-1.8.1. * builtin/, language/: changed from "#assert_raises(:symbol" into "#assert_raise(symbol". * builtin/, language/: rubyunit's #assert_match has opposite argument order than Test::Unit. * rubicon_tests.rb: #default_test added. * language/TestRegularExpressions.rb: capture_stderr, so that the console doesn't get cluttered up with regexp warnings. 2003-04-12 Tanaka Akira * language/regexp.test: fix error message on `([a-[:digit:]]+)'. 2003-03-21 Tanaka Akira * builtin/notTestProcess.rb (TestProcess#wait_child): fix float constant `.1'. (TestProcess#test_s_setpgid): ditto. 2003-03-16 Tanaka Akira * builtin/ArrayBase.rb, builtin/HashBase.rb, builtin/StringBase.rb, builtin/TestFloat.rb, builtin/TestKernel.rb, builtin/TestMarshal.rb, builtin/TestObjectSpace.rb, builtin/TestStruct.rb, builtin/TestSymbol.rb, builtin/TestTime.rb: use `__id__' instead of `id' method to avoid warnings. * builtin/TestIO.rb (test_s_popen_spawn): specify pid to wait. (test_pos=): result of assignment is value of rhs. 2003-02-12 Nobuyoshi Nakada * builtin/TestFile.rb (TestFile::test_s_basename): SUSv3 compliant. * builtin/TestFile.rb (TestFile::test_s_dirname): ditto. * builtin/TestFile.rb (TestFile::test_s_expand_path): ditto. 2003-02-07 Nobuyoshi Nakada * builtin/TestFloat.rb (TestFloat::test_DIV): no . floating literal anymore. * builtin/TestThread.rb (TestThread::_wait, TestThread::test_join, TestThread::test_s_kill): ditto * builtin/TestTime.rb (TestTime::test_eql, TestTime::test_hash): ditto. 2003-01-22 Dave Thomas * rubicon.rb, TestDir.rb, TestKernel.rb: patches fron Nathaniel to tidy up output, particularly under Windows. 2002-12-30 Nobuyoshi Nakada * builtin/TestKernel.rb (TestKernel::test_methods, TestKernel::test_s_set_trace_func): follow recent changes. * language/TestEval.rb (EvTest): ditto. 2002-10-27 Dave Thomas * language/TestEval.rb: Patch from Anders Bengtsson to remove dependency on support for Kernel#binding (presumably to allow JRuby tests to run). 2002-10-07 Yukihiro Matsumoto * replace "type" by "class" since Object#type is deprecated in 1.7.3. 2002-09-28 Tanaka Akira * rubicon.rb: recognize HP-UX to treat it as an Unix variant. * builtin/TestIO.rb (test_pid): Use `exec' trick for all Unix variants. * builtin/TestFileTest.rb (TestFileTest::test_test): Use 02755 instead of 02644 for setgid bit because setgid bit without execution bit means mandatory locking for Solaris and it fails on NFS. (TestFileTest::test_test): /dev/tty is symlink on Solaris. * builtin/TestFloat.rb: Use 0.0/0.0 instead of Math::log(-1.0) to generate NaN because Math::log(-1.0) returns -Infinity instead of NaN on Solaris. * builtin/TestThreadGroup.rb (test_list): Avoid deadlock. 2002-09-22 Nobuyoshi Nakada * builtin/TestThread.rb (TestThread::test_abort_on_exception): get rid of error message sent to stderr, and confirm whether exact exception was raised from the message. * builtin/TestThread.rb (TestThread::test_s_abort_on_exception): ditto. * builtin/TestThread.rb (TestThread::test_safe_level): not depend on context switch order. * builtin/TestThread.rb (TestThread::MyException::test_timeout): added for optional argument to Thread#join. 2002-08-28 Anders Bengtsson * rubicon_tests.rb: Remove the need for Dir.chdir, as JRuby doesn't support it. 2002-08-21 Dave Thomas * builtin/StringBase.rb: Booker Bense supplied patch to fix split! behavior. 2002-06-28 Nobuyoshi Nakada * builtin/TestIO.rb (TestIO::test_ungetc): use `?\s' for white space instead of `?'. 2002-05-30 Yukihiro Matsumoto * builtin/TestRange.rb (TestRange::test_length): 1.7 no longer provides Range#length. * builtin/TestRange.rb (TestRange::test_size): check should be done for "size", not "length". 2002-05-21 Yukihiro Matsumoto * builtin/TestModule.rb (TestModule::test_CMP): <=> comparison between unrelated classes/modules does not raise an exception on 1.7 now. 2002-03-26 Nobuyoshi Nakada * builtin/TestIO.rb (TestIO::test_gets_para): IO#gets in paragraph mode. 2002-03-21 Dave Thomas * builtin/TestDir.rb: Get working under Win2k, based on a patch from Chris Morris 2002-03-10 Yukihiro Matsumoto * builtin/TestEnumerable.rb (TestEnumerable::test_each_with_index): 2 tests removed: each_with_index returns self in the latest CVS. 2002-03-08 Yukihiro Matsumoto * builtin/TestKernel.rb (TestKernel::test_extend): should handle extend order change. 2002-02-26 Yukihiro Matsumoto * builtin/TestMarshal.rb (TestMarshal::test_s_dump_load3): new Marshal.load calls proc for Fixnums. 2002-01-30 Nobuyoshi Nakada * builtin/TestKanjiIndex.rb: new tests. 2002-01-29 Nobuyoshi Nakada * builtin/TestFile.rb (TestFile::test_s_expand_path): avoid warnings in 1.7. * builtin/TestKernel.rb (TestKernel::test_s_open1): 1.7 feature. * language/TestBlocksProcs.rb (TestBlocksProcs::testYield): ditto. * language/TestFloats.rb (TestFloats::test_number_to_string): strict number check. * language/TestFloats.rb (TestFloats::test_malformed): ditto. * language/TestFloats.rb (TestFloats::test_string_to_number): ditto. 2002-01-23 Yukihiro Matsumoto * builtin/TestModule.rb (TestModule::test_CMP): Module#<=> between unrelated modules now raises exception in 1.7 2002-01-21 Yukihiro Matsumoto * builtin/TestKernel.rb: should not close io twice. 2002-01-04 Chad Fowler * rubicon.rb: Change VersionNumber class to Version and implemented some class methods to replace use of $rubyVersion global. (The #less_than stuff can probably still use some refactoring). * builtin/HashBase.rb,builtin/ArrayBase.rb: Added test for #select. Removed duplication in test_indices and test_indexes, using same code for test_select. Not testing deprecated test_ind*es methods in >=1.7.2 * builtin/*, language/*: All references to $rubyVersion replaced with Version class methods. 2001-12-27 Dave Thomas * language/TestStrings.rb: Tests for string literals from Matt Armstrong * builtin/StringBase.rb: Additional tests in #sub from Matt Armstrong. 2001-11-27 Chad Fowler * language/TestFloats.rb: fixed tests to work on Win32 * builtin/TestFile__Stat.rb: Guarded known Win32 problems that were previously exposed during Cygwin testing. * builtin/TestFile.rb: Guarded known Win32 problems that were previously exposed during Cygwin testing. * builtin/TestFile.rb: Windows doesn't like pre-18000-second dates on its files. Changed the tests to accomodate. * builtin/TestFloat.rb: fixed tests to work on Win32. * builtin/TestTime.rb: Win32 fixes for asctime and ctime. 2001-11-26 Dave Thomas * builtin/TestFile.rb: Patches from Patrick Cheng for basename and dirname to support ALT_SEPARATOR. 2001-11-19 Dave Thomas * builtin/TestIO.rb, Kernel: Array separator behavior changes back. 2001-11-25 Dave Thomas * GNUmakefile: added. Now 'make' picks up GNUmakefile, and nmake the Makefile. * util\checkstat.c (main): Modify to compile with MSVC * builtin\TestIO.rb: MsWin32 doesn't support bi-directional pipes, so start removinh them from the tests. 2001-11-18 Dave Thomas * builtin/TestFile.rb: Chad: changed line length tests to alkklow for \r\n on any WindowsNative platform * builtin/TestDir.rb: Chad: added missing Dir#close's, and added a test to illustrate a cygwin known problem. 2001-11-16 Dave Thomas * Makefile: Avoid adding an empty tarball to the tarball when I say 'make tar' :) * builtin/TestFile.rb, TestKernel: Cygwin can't support modes when creating fles, so flag these two tests as known problems * rubicon.rb: Add support for 'known_problem' 2001-11-15 Dave Thomas * builtin/FileInfoTest.rb: If run in a directory with g+s, the Stat tests for gid and uid fail, so explicitly set the file's owner. I'm worried this might not port to all systems: we'll see. * builtin/TestFile__Stat.rb, TestFileTest: I'd never tried running Rubicon as root! 2001-11-14 Dave Thomas * builtin/TestThreadGroup.rb: Tidy up spawned threads. Not doing so was hanging dblack machine in some subsequent I/O tests (which seems like a potential bug it its own right, but not one I can track down). * builtin/TestFile.rb, TestKernel.rb: Include umask when checking file permissions. 2001-11-13 Dave Thomas * builtin/TestIO.rb, TestKernel.rb: change 'puts' test: as of 1.7.2, arrays no longer have their contents joined by "\n" on output. 2001-11-11 Dave Thomas * builtin/TestIO.rb: Can't test /dev/tty when run from cron. * language/TestLoopStuff.rb: Fix warnings about bare regex's in booleans under 1.7 2001-11-11 Tanaka Akira * language/TestRegularExpressions.rb, builtin/TestFile, TestIO: arious fixes for Solaris, plus remove spurious tracing line Dave had left in Regexp stuff. 2001-11-10 Dave Thomas * language/TestRegularExpressions.rb: Guy Decoux supplied a total of almost 3,000 regular expression tests, based on various P* language ones. * builtin/ArrayBase.rb: Matt Armstrong submitted patches for indexing past the end of an array. 2001-11-09 Dave Thomas * Various: Add support for generating the results in XML format, and start working on getting the tests more consistent on the Windows platforms. 2001-11-04 Masaki Suketa * StringBase, TestClass, TestFile, TestMath: found various tests which used assert(....) instead of asert_equal etc... 2001-11-02 * Various: Start getting tests to run under MsWin32. Add better support for OS dependent blocks of code. 2001-10-25 Dave Thomas * Various: Fixes to remove implicit dependence on order of tests (found when NT ran under Lapidary, which uses different order to runit). 2001-10-25 Nobu Nakad * language/TestFlip.rb: Added. Test .. and ... operators * AllTests.rb: Invoking without arguments, run testsuits under rubicon's directory, not current directory. * builtin/StringBase.rb: Tests for String#[re] bug fix. * builtin/TestFile.rb: On linux with devfsd, /dev/fd0 is not a block device. * builtin/TestKernel.rb: Allocation framework changed at 1.7.1 2001-10-16. Alias of global variable improved (DT: only on 1.7) * builtin/TestModulePrivate.rb: Module#instance_methods doesn't preserve the order. * builtin/TestRegexp.rb: Duped Regexp's ID differs from original's one. * builtin/TestThread.rb: Should wait until t1 wake up. * language/TestScope.rb: Tests for special variables($_, $~ and so on) and thread (modified by DT: only for >= 1.7) 2001-08-02 Dave Thomas * rubicon.rb (runChild): Fix typo (thanks to Yamada-san for finding it) 2001-07-27 * builtin\StringBase.rb: Use of $= is deprecated as of 1.7.1 * builtin\TestIO.rb: Under Windows, the CR is stripped out of lines we read, so we can't simply add the length of the input to arrive at the file position. Putting files into binary mode fixes this. * builtin\TestFixnum.rb: On my windows box, 0**-1 returns -Infinity, rather that +Infinity. Who cares as long as it's infinite... :) * builtin\TestStruct__Tms.rb (TimesClass): Under Windows, burning CPU by creating and deleting a directory 5,000 times takes forever and is effectively non-interruptable. Change it to loop for no more than three seconds. Also start removing the Cygwin unsupported stuff. 2001-07-27 Start getting stuff to work under Windows. First we get Cygwin working, and then we attack the MSVC version. * builtin\TestFile.rb: Can't test fifo's under Windows. File sizes of files containing newlines are different under DOS. * builtin\TestDir.rb: Need to close the directory at the end of tests in order to allow Windows to delete it. * builtin\TestTime.rb: Under Windows the clock resolution means that we need to insert a sleep to have two consecutive Time.now's be different. * builtin\TestKernel.rb: Cygwin apparently doesn't honor a signal disposition of 'IGNORE', so skip the test under test_s_trap 2001-07-25 Hugh Sasse * FileTest.rb: Add File.join tests in light of ruby-talk:18512 2001-07-23 Patrick Cheng * rubicon.rb: Make files r/w before deleting. 2001-06-11 Dave Thomas * Fixed a couple of warnings resulting from running tests in one pass. * Makefile: changed default target to run library and builtins tests in a single pass, so we now get just one summary table 2001-06-10 Dave Thomas * language/*: added all the tests from the standard test.rb file. Most of these go into various files in the language subdirectory, but some are class specific. The latter go into the appropriate files in builtins 2001-06-05 Yukihiro Matsumoto * builtin/TestModule.rb: list of constants should be sorted before comparison. 2001-04-23 Yukihiro Matsumoto * builtin/TestFixnum.rb: -1 (in fact, negative integers in general) should be considered as infinite sequence of 1 bits, so that checkBits() test on -1 should be removed. 2001-03-28 Dave Thomas * builtin/TestTime.rb: Time.zone now returns 'UTC' rather than 'GMT' * builtin/TestStruct__Tms.rb,TestTime,TestProcess: the .times method moved to Process in 1.7 2001-03-20 Dave Thomas * builtin/TestMarshal.rb: Add test for Bignum marshalling. 2001-02-19 Yukihiro Matsumoto * builtin/StringBase.rb: I finally agreed that "FooBar"[6,2] returning nil is a bug (line 17). 2001-02-06 Dave Thomas * builtin/ArrayBase.rb: Split out testing of Array-like classes from Array itself. This allows Matju to test his ArrayMixin classes using rubicon. 2001-02-04 Dave Thomas * builtin/TestKernel.rb: Remove begin/end from .id tests: the bug's been fixed. 2001-02-03 Dave Thomas * builtin/TestProc.rb: #arity values changes at 1.6.2 * builtin/TestArray.rb: Behavior of sort! changes at 1.7 2001-01-18 Dave Thomas * language/TestFloats.rb: Add Aleksi's new tests (thanks). 2001-01-17 Dave Thomas * Makefile (test): Allow name of interpreter to be overridded, so that we can test multiple Ruby's on the same box 2001-01-17 Yukihiro Matsumoto * builtin/TestKernel.rb: replace NotImplementError by NotImplementedError. 2001-01-13 Dave Thomas * builtin/many: Old tests had a bug where they'd try to taint frozen objects. Changed the order to taint first, then freeze. 2001-01-11 Dave Thomas * builtin/TestBignum.rb: Fixes to operators used for === and eql? (Hugh Sasse) * builtin/TestFixnum.rb: Replaced an assert_equal with assert_flequal, and added a description to MOD (Hugh Sasse). 2001-01-10 Dave Thomas * builtin/TestString.rb: Added patches to test .dup behavior from Hugh Sasse. * builtin/TestFloat.rb: Added a number of patches from Hugh Sasse. 2000-11-19 Dave Thomas * builtin/TestArray.rb: (test_sort!) The test for sort! was wrong: it shouldn't return nil for 0 or 1 length arrays (thanks to Ryan Davis) 2000-11-16 Dave Thomas * builtin/TestTime.rb: (test_isdst) Don't do isdst check unless in the US (anyone got any ideas on how to test this globally)? 2000-11-16 Yukihiro Matsumoto * builtin/TestThread.rb: (test_run) Fixed a timing problem. 2000-10-28 Dave Thomas * builtin/TestObjectSpace.rb: (test_s_finalizers) Brian Feldman added test. 2000-10-23 Dave Thomas * builtin/TestKernel.rb (test_s_trap): Fix a race condition. * builtin/TestDir.rb: Remove dependence on order of entries returned by directory operations. * builtin/TestIO.rb: Brian Feldman: Make exception returned by File#pos=-1 and seek(-1) less system specific. Use .read, not .sysread, in reopen tests. * builtin/TestFile__Stat.rb: Brian Feldman: make /dev/fd0 tests Linux specific. Make group tests (gid, grpowned) Linux specific. Check stickiness using a directory, not file. * builtin/TestFileTest.rb: Brian Feldman: sticky test now checks a directory for portability. Make /dev/fd0 Linux specific. Make grpowned and /dev/fd0 tests Linux specific * rubicon.rb: Add classification routines for operating systems * builtin/TestArray.rb: Brian Feldman/Aleksi Niemlä: retain test for pre 1.6.2 push behavior. * rubicon.rb (tidyup): Brian Feldman: delete directories as well as files out of _test (used by above). * util/checkstat.c (main): Brian Feldman: Make checkstat more portable to systems where the fields in a struct stat don't fit in to an int. 2000-10-20 Dave Thomas * builtin/TestArray.rb: Aleksi again. Add test for array.push with no argument. * builtin/TestTime.rb: Thanks to Aleksi for this one. We can't create local times of 1970,1,1,0,0,0 when we're east of Greenwich, so I hacked the dates forward a year. Also changed isdst to remove checks for US changes from DST to standard time when not in the US, and tidied layout a tad * rubicon.rb (VersionNumber): Add a class to encapsulate Ruby versions * builtin/TestFile.rb: create local socket, rather than relying on /tmp/.X11 stuff * builtin/TestFileTest.rb: ditto From holmberg at rubyforge.org Fri Jan 7 08:34:24 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Fri Jan 7 08:34:26 2005 Subject: [Rubytests-commit] rubicon ChangeLog Message-ID: <200501071334.j07DYOdS032008@rubyforge.org> Update of /var/cvs/rubytests/rubicon In directory rubyforge.org:/tmp/cvs-serv31964 Modified Files: ChangeLog Log Message: A newly generated version before the coming relase (probably 0.37). This version was generated by the command: $ cvs2cl -S --ignore ChangeLog If needed, we can rerun the command again, if some last minute changes should be incorporated in the release. Index: ChangeLog =================================================================== RCS file: /var/cvs/rubytests/rubicon/ChangeLog,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ChangeLog 6 Apr 2004 11:43:52 -0000 1.17 --- ChangeLog 7 Jan 2005 13:34:22 -0000 1.18 *************** *** 1,632 **** ! 2004-04-06 Simon Strandgaard ! * release_package.rb: adapted some release package code ! from my iterator project. outputs: tgz, zip. ! * builtin/StringBase.rb: added tests of ! #casecmp, #insert, #lstrip, #lstrip!, ! #match, #rstrip, #rstrip!, #to_sym. ! * builtin/HashBase.rb: added tests of [...1860 lines suppressed...] ! language/AllLanguageTests.rb, language/TestAccessControl.rb, ! language/TestArrays.rb, language/TestAssignment.rb, ! language/TestBasicExpressions.rb, language/TestBlocksProcs.rb, ! language/TestBooleanExpressions.rb, language/TestCase.rb, ! language/TestCatchThrow.rb, language/TestClasses.rb, ! language/TestConstants.rb, language/TestEval.rb, ! language/TestExceptions.rb, language/TestFlip.rb, ! language/TestFloats.rb, language/TestHashes.rb, ! language/TestIfUnless.rb, language/TestIntegers.rb, ! language/TestInvocation.rb, language/TestLoopStuff.rb, ! language/TestMethods.rb, language/TestModules.rb, ! language/TestNames.rb, language/TestPredefinedVariables.rb, ! language/TestRanges.rb, language/TestRegularExpressions.rb, ! language/TestScope.rb, language/TestSourceLayout.rb, ! language/TestStrings.rb, language/TestSymbols.rb, ! language/regexp.test, util/.cvsignore, util/checkstat.c, ! util/test_touch.c: ! ! initial import from the ruby cvs server From holmberg at rubyforge.org Sat Jan 15 17:57:53 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Sat Jan 15 17:57:55 2005 Subject: [Rubytests-commit] rubicon/builtin TestKernel.rb Message-ID: <200501152257.j0FMvrdS004338@rubyforge.org> Update of /var/cvs/rubytests/rubicon/builtin In directory rubyforge.org:/tmp/cvs-serv4163/builtin Modified Files: TestKernel.rb Log Message: Make sure the same Ruby exeutable is used in the whole testsuite. If another Ruby instance is invoked from one of the tests we should NOT used the "ruby" that happens to be in the PATH (if there is any). Instead we should use the executable specified by $interpreter. That variable is set in "rubicon.rb" to be the path to the Ruby executable used in the original invokation of the Rubicon test(s). For example, if the original invocation was: $ ~/installs/ruby-1.8.2/bin/ruby AllTests.rb then all extra invocations of Ruby in the testcases should also use the same installation: the one under ~/installs/ruby-1.8.2 . Index: TestKernel.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/builtin/TestKernel.rb,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TestKernel.rb 3 Jan 2005 15:47:32 -0000 1.10 --- TestKernel.rb 15 Jan 2005 22:57:51 -0000 1.11 *************** *** 2005,2009 **** values = {} 5.times do ! val = `ruby -e "puts rand(2**30)"` assert($? == 0) val = val.to_i --- 2005,2009 ---- values = {} 5.times do ! val = `#$interpreter -e "puts rand(2**30)"` assert($? == 0) val = val.to_i From holmberg at rubyforge.org Sat Jan 15 17:57:53 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Sat Jan 15 17:57:55 2005 Subject: [Rubytests-commit] rubicon/language TestInvocation.rb Message-ID: <200501152257.j0FMvrdS004342@rubyforge.org> Update of /var/cvs/rubytests/rubicon/language In directory rubyforge.org:/tmp/cvs-serv4163/language Modified Files: TestInvocation.rb Log Message: Make sure the same Ruby exeutable is used in the whole testsuite. If another Ruby instance is invoked from one of the tests we should NOT used the "ruby" that happens to be in the PATH (if there is any). Instead we should use the executable specified by $interpreter. That variable is set in "rubicon.rb" to be the path to the Ruby executable used in the original invokation of the Rubicon test(s). For example, if the original invocation was: $ ~/installs/ruby-1.8.2/bin/ruby AllTests.rb then all extra invocations of Ruby in the testcases should also use the same installation: the one under ~/installs/ruby-1.8.2 . Index: TestInvocation.rb =================================================================== RCS file: /var/cvs/rubytests/rubicon/language/TestInvocation.rb,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** TestInvocation.rb 13 Feb 2004 15:35:16 -0000 1.1.1.1 --- TestInvocation.rb 15 Jan 2005 22:57:51 -0000 1.2 *************** *** 23,27 **** def test_00_Basic ! assert_equal("foobar", `ruby -e 'print "foobar"'`) end --- 23,27 ---- def test_00_Basic ! assert_equal("foobar", `#$interpreter -e 'print "foobar"'`) end *************** *** 29,34 **** tmp_write { |f| f.puts "print $zzz" } ! assert_equal('true', `ruby -s script_tmp -zzz`) ! assert_equal('555', `ruby -s script_tmp -zzz=555`) end --- 29,34 ---- tmp_write { |f| f.puts "print $zzz" } ! assert_equal('true', `#$interpreter -s script_tmp -zzz`) ! assert_equal('555', `#$interpreter -s script_tmp -zzz=555`) end *************** *** 39,43 **** end ! assert_equal('678', `ruby script_tmp -zzz=678`) end --- 39,43 ---- end ! assert_equal('678', `#$interpreter script_tmp -zzz=678`) end *************** *** 51,56 **** end ! assert_equal('nil', `ruby -x script_tmp`) ! assert_equal('555', `ruby -x script_tmp -zzz=555`) end --- 51,56 ---- end ! assert_equal('nil', `#$interpreter -x script_tmp`) ! assert_equal('555', `#$interpreter -x script_tmp -zzz=555`) end *************** *** 63,67 **** end ! `ruby -i.bak -pe 'sub(/^[0-9]+$/){$&.to_i * 5}' script_tmp` File.open(TMP) do |f| --- 63,67 ---- end ! `#$interpreter -i.bak -pe 'sub(/^[0-9]+$/){$&.to_i * 5}' script_tmp` File.open(TMP) do |f| From holmberg at rubyforge.org Sat Jan 15 18:13:44 2005 From: holmberg at rubyforge.org (holmberg@rubyforge.org) Date: Sat Jan 15 18:13:45 2005 Subject: [Rubytests-commit] rubicon ChangeLog Message-ID: <200501152313.j0FNDidS006612@rubyforge.org> Update of /var/cvs/rubytests/rubicon In directory rubyforge.org:/tmp/cvs-serv6607 Modified Files: ChangeLog Log Message: updated by rerunning cvs2cl Index: ChangeLog =================================================================== RCS file: /var/cvs/rubytests/rubicon/ChangeLog,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** ChangeLog 7 Jan 2005 13:34:22 -0000 1.18 --- ChangeLog 15 Jan 2005 23:13:42 -0000 1.19 *************** *** 1,2 **** --- 1,21 ---- + 2005-01-15 23:57 holmberg + + * builtin/TestKernel.rb, language/TestInvocation.rb: + + Make sure the same Ruby exeutable is used in the whole testsuite. + If another Ruby instance is invoked from one of the tests we should + NOT used the "ruby" that happens to be in the PATH (if there is + any). + + Instead we should use the executable specified by $interpreter. + That variable is set in "rubicon.rb" to be the path to the Ruby + executable used in the original invokation of the Rubicon test(s). + For example, if the original invocation was: + + $ ~/installs/ruby-1.8.2/bin/ruby AllTests.rb + + then all extra invocations of Ruby in the testcases should also use + the same installation: the one under ~/installs/ruby-1.8.2 . + 2005-01-07 14:23 holmberg