COMMIT Kernel.require: Guard bug #1627: fixed on HEAD; not backported. http://github.com/rubyspec/rubyspec/commit/200f866d3dba6b649057581508c80283a22740bb COMMIT Kernel.require: Refactor extensively. Details follow. http://github.com/rubyspec/rubyspec/commit/a09a42f3307687849b80bed8e1bb1283b2dc1b85 COMMIT TODO: Report misleading Kernel.require error message. http://github.com/rubyspec/rubyspec/commit/8d71b883030dcee2cc297840c34a438a15843023 COMMIT Added TODO about use of variable matchers. Cleaned up a bit. http://github.com/rubyspec/rubyspec/commit/9b3c965fae787179ef8dc2902d499fba2c7361fd COMMIT Kernel.require: Tweak tests to handle 1.9's canonicalization of paths. http://github.com/rubyspec/rubyspec/commit/9c5b3ddd2703ce570abad92592764361e065703f COMMIT TODO: Refactor Kernel.require specification. http://github.com/rubyspec/rubyspec/commit/68015ca09e3d883fe29a83af5670f7e1bac891da COMMIT Kernel.require: Test for path canon. re: bug #1627. http://github.com/rubyspec/rubyspec/commit/437f5ffca58610b98a724ba6e137d65db1ea0a07 COMMIT TODO: ARGF#bytes and #chars also wrongly return nil. http://github.com/rubyspec/rubyspec/commit/b3a4c5a7ebcddc92bf4c2ef10e2e3f04efb66c9d COMMIT ARGF#to_s: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/a35790d90942e99f1f07eea7716240af0d0bd58b COMMIT ARGF#to_i: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/326b27e428a599506c19ee2ad383a51aa7789080 COMMIT ARGF#to_io: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/4ef64e40ab7254024283bade30f67060a5966d45 COMMIT ARGF#to_a: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/5e58d1943337e3c8a4c91b7d25500bba4ab00c4d COMMIT ARGF#tell: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/638b025000a8eee36280ae6897ba32e687aadf83 COMMIT ARGF#seek: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/3c73fb193c337a060adcd9a3198bc1e3ff381186 COMMIT ARGF#each: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/2582d2846b5fac86dae166f5d5e8a7aa2061c83b COMMIT ARGF#rewind: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/89d8116ee31665f23446de1344faadbbe7993c66 COMMIT ARGF#read: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/75a71ba2497f001859b021f66b2159d71518f92d COMMIT ARGF#readline: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/3b256e55f463a77990c5ef6281ef3cd9ad4a3a00 COMMIT ARGF#readlines: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/f605826dd98dcc64f1e3127bff231af823f45a79 COMMIT ARGF#readchar: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/c282eda5b61c299c4daeaac9d7a59a1d035617ef COMMIT ARGF#pos: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/f9ece26772119250774f11ab3ccaeae614f80ab2 COMMIT ARGF#path: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/a94176c30b5df77c84b7f3ca7f61df47bc849fdf COMMIT ARGF#gets: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/ebb6e728a872514a9d6849b18c788d4aa0b140c6 COMMIT ARGF#getc: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/651cd7330bc469f66aa02e5119cea1e601ecb2af COMMIT ARGF#file: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/0c048466b358e7ede035c9a91a561c9d07d8cad5 COMMIT ARGF#fileno: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/565f3aac16589ac9a23dabe42522944169662468 COMMIT ARGF#filename: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/aa90a71f6e54727d9a9f117bdbac6cd0bfb4ceb7 COMMIT ARGF#eof: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/5bd0a5d39c1a5d68995e33af897c97c449394ba2 COMMIT ARGF#each_line: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/5648050bca7b3a2d5ecbed75aeb6ae0a663fbae5 COMMIT ARGF#closed?: Remove 1.9 tags; all tests pass http://github.com/rubyspec/rubyspec/commit/8243493f5ceaff9b40ce3b7e54bddda5b45d76fa COMMIT TODO: Figure out what's to blame for ARGF#lineno failure. http://github.com/rubyspec/rubyspec/commit/605883a4b07be1facc0873c38790d2d9636ab030 COMMIT TODO: Determine what ARGF#skip should do. http://github.com/rubyspec/rubyspec/commit/8bd0dfdba5a1a3bab0468c8df0e88dff1f9cee67 COMMIT TODO: File ticket for ARGF#skip bug. http://github.com/rubyspec/rubyspec/commit/1a77d5dc9f3a1c0ef79b7150f9d103d8ec195312 COMMIT TODO: Report ARGF.skip raising NoMethodError with no files. http://github.com/rubyspec/rubyspec/commit/8492964da14c8eaca82181e865b7ce1577304aa6 COMMIT ARGF#each_char: Remove debug code. http://github.com/rubyspec/rubyspec/commit/3747800d7976a4feb53e20e7e3fb21beb9f099ea COMMIT ARGF#readlines: Returns [] at end of stream on 1.9. http://github.com/rubyspec/rubyspec/commit/10179f2387d46a2e1b772f35140381436aeaf38d COMMIT TODO: Report 1.8.6 ARGF#readlines == nil bug? http://github.com/rubyspec/rubyspec/commit/170ba6416aa9caea178e1437a4582227fdbcf8bd COMMIT TODO: Report ARGF#each_(char|byte) returning nil on 1.9. http://github.com/rubyspec/rubyspec/commit/c307610b67cadedc8ea2e5f1f40e31edfbed47b3 COMMIT ARGF: Only close ARGF if not already closed; avoids exception on 1.9. http://github.com/rubyspec/rubyspec/commit/7cb7f096698d3f854ce5a4cd4b3662ee794d503e COMMIT ARGF#closed?: Only close if not already; avoids error on 1.9. http://github.com/rubyspec/rubyspec/commit/ec209a4b353a23d5fd22aa3098e22270c34b01bb COMMIT ARGF#filename: Only close ARGF if it's open; avoids error on 1.9. http://github.com/rubyspec/rubyspec/commit/42799dd668ea9a2f93d6189259450d5fc01d83f0 COMMIT BasicObject has no superclass. http://github.com/rubyspec/rubyspec/commit/6ac635e5d7383f56052cf0f017284a82121f5dd6 COMMIT RUBY_REVISION is a Fixnum from 1.9 onwards. http://github.com/rubyspec/rubyspec/commit/9d548605ff4901eec1cead1e9519746d528d9743 COMMIT RUBY_RELEASE_DATE is a String. http://github.com/rubyspec/rubyspec/commit/64160beeb7d08e39fe03e43ad56df46bc8cbf9fd COMMIT RUBY_PLATFORM is a String. http://github.com/rubyspec/rubyspec/commit/ad17babac1cd6fd73f8ef4555c734d930d5f41e7 COMMIT RUBY_ENGINE is a String from 1.9 onwards. http://github.com/rubyspec/rubyspec/commit/0f3f6c9dc3df56858db215ac50658a763140860b COMMIT RUBY_DESCRIPTION is a String from 1.8.7 onwards. http://github.com/rubyspec/rubyspec/commit/944162a8e8e10f6c18589552f66dcc90728272a9 COMMIT RUBY_COPYRIGHT: is a String from 1.8.7 onwards. http://github.com/rubyspec/rubyspec/commit/c463975b17e4ca9f5839c131802ee7812102667f COMMIT TODO: Confirm that 1.9 tags refer to the trunk. http://github.com/rubyspec/rubyspec/commit/77c31c69020a97a57b65c9aa7dabe6cbeac073bc COMMIT TODO: Add pointer to [ruby-core:23843]; tweak. http://github.com/rubyspec/rubyspec/commit/07040a90fbf88662d9760aab861929514c7547ea COMMIT Math.cos: Explicit test for use of #to_f in coercion. http://github.com/rubyspec/rubyspec/commit/c869250d11af73438fac6f9df86853f2afbb13e0 --- 20090614T075903 +++ 20090615T080227 @@ -1,8921 +1,8921 @@ IMAPTest#test_imaps_with_ca_file: s: . IMAPTest#test_starttls: s: . IMAPTest#test_unexpected_eof: s: . -MinitestSpec#test_needs_to_verify_types_of_objects: s: . -MinitestSpec#test_needs_to_verify_kinds_of_objects: s: . -MinitestSpec#test_needs_to_verify_identity: s: . -MinitestSpec#test_needs_to_verify_using_respond_to: s: . -MinitestSpec#test_needs_to_catch_an_expected_exception: s: . -MinitestSpec#test_needs_to_catch_an_unexpected_exception: s: . +MinitestSpec#test_needs_to_verify_inequality: s: . +MinitestSpec#test_needs_to_verify_throw: s: . MinitestSpec#test_needs_to_verify_floats_within_a_delta: s: . -MinitestSpec#test_needs_to_verify_non_identity: s: . -MinitestSpec#test_needs_to_have_all_methods_named_well: s: . -MinitestSpec#test_needs_to_verify_regexp_matches: s: . MinitestSpec#test_needs_to_verify_equality: s: . -MinitestSpec#test_needs_to_verify_throw: s: . -MinitestSpec#test_needs_to_verify_mismatch: s: . -MinitestSpec#test_needs_to_verify_non_nil: s: . -MinitestSpec#test_needs_to_verify_inequality: s: . +MinitestSpec#test_needs_to_have_all_methods_named_well: s: . +MinitestSpec#test_needs_to_catch_an_unexpected_exception: s: . +MinitestSpec#test_needs_raise_if_an_expected_exception_is_not_raised: s: . +MinitestSpec#test_needs_to_catch_an_expected_exception: s: . +MinitestSpec#test_needs_to_verify_kinds_of_objects: s: . MinitestSpec#test_needs_to_verify_nil: s: . -MinitestSpec#test_needs_to_be_able_to_catch_a_minitest_assertion_exception: s: . MinitestSpec#test_needs_to_verify_using_any_operator: s: . -MinitestSpec#test_needs_raise_if_an_expected_exception_is_not_raised: s: . +MinitestSpec#test_needs_to_be_able_to_catch_a_minitest_assertion_exception: s: . +MinitestSpec#test_needs_to_verify_non_nil: s: . +MinitestSpec#test_needs_to_verify_types_of_objects: s: . +MinitestSpec#test_needs_to_verify_using_respond_to: s: . +MinitestSpec#test_needs_to_verify_regexp_matches: s: . +MinitestSpec#test_needs_to_verify_non_identity: s: . +MinitestSpec#test_needs_to_verify_mismatch: s: . +MinitestSpec#test_needs_to_verify_identity: s: . NonString#test_6: s: . NonString#test_7: s: . OpenSSL::TestASN1#test_decode: s: . @@ -9390,7 +9390,7 @@ Rinda::TupleSpaceTest#test_cancel_02: s: . Rinda::TupleSpaceTest#test_core_01: s: . Rinda::TupleSpaceTest#test_core_02: s: . -Rinda::TupleSpaceTest#test_core_03_notify: s: F +Rinda::TupleSpaceTest#test_core_03_notify: s: . Rinda::TupleSpaceTest#test_inp_rdp: s: . Rinda::TupleSpaceTest#test_ruby_talk_264062: s: . Rinda::TupleSpaceTest#test_symbol_tuple: s: . @@ -14173,7 +14173,7 @@ TestThread#test_mutex_synchronize: s: . TestThread#test_mutex_trylock: s: . TestThread#test_new: s: . -TestThread#test_priority: s: F +TestThread#test_priority: s: . TestThread#test_recursive_error: s: . TestThread#test_safe_level: s: . TestThread#test_select_wait: s: . @@ -14633,11 +14633,6 @@ Finished in seconds. ) Failure: -test_core_03_notify(Rinda::TupleSpaceTest) [/home/chkbuild/tmp/build/ruby-1.9.1//ruby/test/rinda/test_rinda.rb:387]: -<10> expected but was -<8>. - - ) Failure: test_execute_remote(TestGemCommandsInstallCommand) [/home/chkbuild/tmp/build/ruby-1.9.1//ruby/test/rubygems/test_gem_commands_install_command.rb:116]: [Gem::SystemExitException] exception expected, not Class: @@ -14699,11 +14694,7 @@ /home/chkbuild/tmp/build/ruby-1.9.1//ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in `new' /home/chkbuild/tmp/build/ruby-1.9.1//ruby/test/rdoc/test_rdoc_ri_driver.rb:18:in `setup' - ) Failure: -test_priority(TestThread) [/home/chkbuild/tmp/build/ruby-1.9.1//ruby/test/ruby/test_thread.rb:129]: -[ruby-dev:33124] - -5861 tests, 2839303 assertions, 5 failures, 7 errors, 0 skips +5861 tests, 2839319 assertions, 3 failures, 7 errors, 0 skips make: *** [test-all] エラー 1 exit 2 failed(test-all) @@ -15825,6 +15816,9 @@ - returns self /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/closed_spec.rb +ARGF.closed? +- returns true if the current stream has been closed + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/each_byte_spec.rb ARGF.each_byte - returns an Enumerator when passed no block @@ -15835,36 +15829,152 @@ - returns an Enumerator when passed no block /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/each_line_spec.rb +ARGF.each_line +- reads each line of files + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/each_spec.rb +ARGF.each +- reads each line of files + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/eof_spec.rb +ARGF.eof +- returns true when reaching the end of a file +- raises IOError when called on a closed stream + +ARGF.eof? +- returns true when reaching the end of a file +- raises IOError when called on a closed stream + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/file_spec.rb +ARGF.file +- returns the current file object on each file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/filename_spec.rb +ARGF.filename +- returns the current file name on each file +- it sets the $FILENAME global variable with the current file name on each file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/fileno_spec.rb +ARGF.fileno +- returns the current file number on each file +- raises an ArgumentError when called on a closed stream + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/getc_spec.rb +ARGF.getc +- reads each char of files + +ARGF.getc +- returns nil when end of stream reached + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/gets_spec.rb ARGF.gets +- reads one line of a file +- reads all lines of a file +- reads all lines of stdin +- reads all lines of two files +- sets $_ global variable with each line read + +ARGF.gets - modifies the files when in place edit mode is on - modifies and backups two files when in place edit mode is on +ARGF.gets +- returns nil when reaching end of files + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/lineno_spec.rb /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/path_spec.rb +ARGF.path +- returns the current file name on each file +- it sets the $FILENAME global variable with the current file name on each file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/pos_spec.rb +ARGF.pos +- gives the correct position for each read operation +- raises an ArgumentError when called on a closed stream + +ARGF.pos= +- sets the correct position in files + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/read_spec.rb +ARGF.read +- reads the contents of a file +- treats first nil argument as no length limit +- treats second nil argument as no output buffer +- treats second argument as an output buffer +- reads a number of bytes from the first file +- reads from a single file consecutively +- reads the contents of two files +- reads the contents of one file and some characters from the second +- reads across two files consecutively +- reads the contents of stdin +- reads a number of bytes from stdin +- reads the contents of one file and stdin +- reads the contents of the same file twice +- reads the contents of a special device file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/readchar_spec.rb +ARGF.getc +- reads each char of files + +ARGF.readchar +- raises EOFError when end of stream reached + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/readline_spec.rb ARGF.readline +- reads one line of a file +- reads all lines of a file +- reads all lines of stdin +- reads all lines of two files +- sets $_ global variable with each line read + +ARGF.readline - modifies the files when in place edit mode is on - modifies and backups two files when in place edit mode is on +ARGF.readline +- raises an EOFError when reaching end of files + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/readlines_spec.rb +ARGF.readlines +- reads all lines of all files +- returns an empty Array when end of stream reached + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/rewind_spec.rb +ARGF.rewind +- goes back to beginning of current file +- raises an ArgumentError when end of stream reached + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/seek_spec.rb +ARGF.seek +- sets the absolute position relative to beginning of file +- sets the position relative to current position in file +- sets the absolute position relative to end of file +- takes at least one argument (offset) + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/skip_spec.rb /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/tell_spec.rb +ARGF.tell +- gives the correct position for each read operation +- raises an ArgumentError when called on a closed stream + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/to_a_spec.rb +ARGF.to_a +- reads all lines of all files +- returns an empty Array when end of stream reached + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/to_i_spec.rb +ARGF.to_i +- returns the current file number on each file +- raises an ArgumentError when called on a closed stream + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/to_io_spec.rb +ARGF.to_io +- returns the IO of the current file + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/argf/to_s_spec.rb +ARGF.to_s +- returns 'ARGF' + /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/array/allocate_spec.rb Array.allocate - returns an instance of Array @@ -17315,6 +17425,7 @@ /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/basicobject/basic_object_class_spec.rb BasicObject class - has no ancestors +- has no superclass - is a class /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/basicobject/basic_object_spec.rb @@ -20705,15 +20816,15 @@ - updates self's position - updates self's lineno based on the number of lines read - does not change $_ -- returns an empty Array when self is at the end +- returns an empty Array when self is at the endheh + IO#readlines when passed [separator] - returns an empty Array when self is at the end - updates self's lineno based on the number of lines read - updates self's position based on the number of characters read - does not change $_ -- returns an Array containing all paragraphs when the passed separator is an empty Stringheh - +- returns an Array containing all paragraphs when the passed separator is an empty String IO#readlines when in write-only mode - raises an IOError @@ -21812,31 +21923,32 @@ /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/core/kernel/require_spec.rb Kernel#require - is a private method -- requires arbitrarily complex files (files with large numbers of AST nodes) -- loads a .rb from an absolute path and returns true -- can load .rb files from relative paths -- normalises .rb paths before storing them in $LOADED_FEATURES -- loads an unqualified .rb by looking in $LOAD_PATH and returns true -- loads extension files +- resolves paths relative to the current working directory - does not expand/resolve qualified files against $LOAD_PATH +- loads a .rb from an absolute path +- collapses consecutive path separators +- loads an unqualified .rb by looking in $LOAD_PATH and returning true - allows unqualified files to contain path information (just not in the beginning) - loads a file with ./filename even if . is not in path +- stores a non-extensioned file with its located suffix - appends a file with no extension with .rb/. in that order to locate file - prefers to use .rb over . if given non-extensioned file and both exist -- will not add a bad load to LOADED_FEATURES - will load file.rb when given 'file' if it exists even if file. is loaded - will not load file. when given 'file' if file.rb already loaded -- will load explicit file. even if file.rb already loaded and vice versa - appends any non-ruby extensioned file with .rb/. in that order to locate file -- produces __FILE__ as the given filename and __LINE__ as the source line number +- loads extension files +- will load explicit file. even if file.rb already loaded and vice versa - stores the loaded file in $LOADED_FEATURES -- stores a non-extensioned file with its located suffix -- will not load the same file twice, returns false instead -- checks $LOADED_FEATURES to see whether file is already loaded +- will not add a bad load to LOADED_FEATURES +- uses $LOADED_FEATURES to see whether file is already loaded +- will not load a file whose path appears in $LOADED_FEATURES; it will return false +- requires arbitrarily complex files (files with large numbers of AST nodes) - raises a LoadError if the file can't be found +- raises a LoadError if the file exists but can't be read - only accepts strings or objects with #to_path -- does not infinite loop on an rb file that requires itself - calls #to_path on non-String arguments +- does not infinite loop on an rb file that requires itself +- produces __FILE__ as the given filename and __LINE__ as the source line number Shell expansion in Kernel#require - expands a preceding ~/ to the user's home directory for building the path to search @@ -22318,9 +22430,9 @@ Math.cos - returns a float - returns the cosine of the argument expressed in radians -- raises a TypeError if the argument cannot be coerced with Float() +- raises a TypeError unless the argument is Numeric and has #to_f - raises a TypeError if the argument is nil -- accepts any argument that can be coerced with Float() +- coerces its argument with #to_f Math#cos - is accessible as a private instance method