COMMIT library/delegate/delegator: Add specs for #{private,protected,public}_methods. http://github.com/rubyspec/rubyspec/commit/cfb3fc28629dbad3cccad4bc02c2e4c06a8e03e6 COMMIT library/delegate/delegator: Spec Delegator instead of SimpleDelegator. http://github.com/rubyspec/rubyspec/commit/11507ff437bbdf0bed8ee432e11517784d9f2c3a COMMIT library/delegate: Move (Simple)Delegator to subfolder http://github.com/rubyspec/rubyspec/commit/4fb7d5934e9fd4abf206270a17dd030af05c2ac4 COMMIT lib/set: {SortedSet,Set}#{keep_if,select!} spec for new methods [redmine:3192] http://github.com/rubyspec/rubyspec/commit/d49833ce7090861e6ce3ebb96337e6ad96a1769a COMMIT NUL is now allowed in a symbol literal in 1.9 http://github.com/rubyspec/rubyspec/commit/dff6ee87fbee7c94398f37835574a047f1179b0b COMMIT Only describe the endpoints of encoding conversion. http://github.com/rubyspec/rubyspec/commit/8292e754a11b1807bfc50337ddcee11f16dfc065 COMMIT Import C-API specs from Rubinius. http://github.com/rubyspec/rubyspec/commit/f8e079299c8d87198ee7a249a98e05f40c651798 COMMIT JRuby is currently having a problem loading the fixture (SyntaxError), so it's not running the specs. http://github.com/rubyspec/rubyspec/commit/35d1c953db52f9a79d3fb56ad435fccef0624739 =================================================================== +++ 20100531T094847 @@ 12 @@ URL: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8 リポジトリのルート: http://svn.ruby-lang.org/repos/ruby リポジトリ UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e +リビジョン: 28102 ノード種別: ディレクトリ 準備中の処理: 特になし 最終変更者: shyouhei @@ 23993 @@ DateTime#zone - needs to be reviewed for spec completeness +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegate_class/instance_method_spec.rb +DelegateClass.instance_method +- returns a method object for public instance methods of the delegated class +- raises a NameError for a private instance methods of the delegated class +- returns a method object for public instance methods of the DelegateClass class +- returns a method object for protected instance methods of the DelegateClass class +- returns a method object for private instance methods of the DelegateClass class - raises a NameError for an invalid method name +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegate_class/instance_methods_spec.rb +DelegateClass.instance_methods +- includes all public methods of the delegated class +- includes instance methods of the DelegateClass class +- does not include private methods +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegate_class/private_instance_methods_spec.rb +DelegateClass.private_instance_methods +- does not include any instance methods of the delegated class +- includes private instance methods of the DelegateClass class +- does not include public or protected instance methods of the DelegateClass class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegate_class/protected_instance_methods_spec.rb +DelegateClass.protected_instance_methods +- does not include public methods of the delegated class +- includes protected instance methods of the DelegateClass class +- does not include public instance methods of the DelegateClass class +- does not include private methods +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegate_class/public_instance_methods_spec.rb +DelegateClass.public_instance_methods +- includes all public methods of the delegated class +- does not include the protected methods of the delegated class +- includes public instance methods of the DelegateClass class +- does not include private methods +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/frozen_spec.rb +Delegator when frozen - is still readable - is frozen - is not writeable (FAILED - ) +- creates a frozen clone - creates an unfrozen dup - causes mutative calls to raise TypeError - returns false if only the delegated object is frozen +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/marshal_spec.rb SimpleDelegator - can be marshalled - can be marshalled with its instance variables intact (FAILED - ) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/method_spec.rb +Delegator#method +- returns a method object for public methods of the delegate object +- returns a method object for protected methods of the delegate object +- raises a NameError for a private methods of the delegate object +- returns a method object for public methods of the Delegator class +- returns a method object for protected methods of the Delegator class +- returns a method object for private methods of the Delegator class - raises a NameError for an invalid method name - raises a NameError if method is no longer valid because object has changed +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/methods_spec.rb +Delegator#methods +- includes all public methods of the delegate object +- includes all protected methods of the delegate object +- includes instance methods of the Delegator class +- does not include private methods +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/private_methods_spec.rb +Delegator#private_methods +- does not include any method of the delegate object +- includes all private instance methods of the Delegate class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/protected_methods_spec.rb +Delegator#protected_methods +- includes protected instance methods of the Delegator class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/public_methods_spec.rb +Delegator#public_methods +- includes public methods of the delegate object +- includes public instance methods of the Delegator class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/send_spec.rb SimpleDelegator.new - forwards public method calls +- forwards protected method calls - doesn't forward private method calls - forwards private method calls made via send or __send__ (ERROR - ) @@ 28814 @@ - returns a new Set containing only elements shared by self and the passed Enumerable - raises an ArgumentError when passed a non-Enumerable +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/keep_if_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/length_spec.rb Set#length - returns the number of elements in the set @@ 28876 @@ - replaces the contents with other and returns self - accepts any enumerable as other +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/select_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/size_spec.rb Set#size - returns the number of elements in the set @@ 29017 @@ - returns a new SortedSet containing only elements shared by self and the passed Enumerable - raises an ArgumentError when passed a non-Enumerable +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/keep_if_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/length_spec.rb SortedSet#length - returns the number of elements in the set @@ 29079 @@ - replaces the contents with other and returns self - accepts any enumerable as other +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/select_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/set/sortedset/size_spec.rb SortedSet#size - returns the number of elements in the set @@ 31112 @@ /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/zlib/zstream/flush_next_out_spec.rb Zlib::ZStream#flush_next_out - flushes the stream and flushes the output buffer +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/array_spec.c: In function ‘copy_ary’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/array_spec.c:: warning: control reaches end of non-void function /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/zlib/zstream/reset_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/zlib/zstream/stream_end_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/zlib/zstream/total_in_spec.rb /home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/zlib/zstream/total_out_spec.rb +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/array_spec.rb +C-API Array function rb_ary_new - returns an empty array +C-API Array function rb_ary_new2 - returns an empty array +C-API Array function rb_ary_push +- adds an element to the array +C-API Array function rb_ary_pop +- removes and returns the last element in the array +C-API Array function rb_ary_join +- joins elements of an array with a string +C-API Array function rb_ary_reverse +- reverses the order of elements in the array +C-API Array function rb_ary_entry +- returns nil when passed an empty array +- returns elements from the end when passed a negative index +- returns nil if the index is out of range +C-API Array function rb_ary_clear +- removes all elements from the array +C-API Array function rb_ary_dup +- duplicates the array +C-API Array function rb_ary_unshift +- prepends the element to the array +C-API Array function rb_ary_shift - removes and returns the first element - returns nil when the array is empty +C-API Array function rb_ary_store +- overwrites the element at the given position +- writes to elements offset from the end if passed a negative index +- raises on IndexError if the negative index is greater than the length +- enlarges the array as needed +C-API Array function RARRAY +- returns a struct with a pointer to a C array of the array's elements +- allows assigning to the elements of the C array +- allows changing the array and calling an rb_ary_xxx function +- allows changing the array and calling a method via rb_funcall +- returns a struct with the length of the array +C-API Array function RARRAY_PTR +- returns a pointer to a C array of the array's elements +- allows assigning to the elements of the C array +C-API Array function RARRAY_LEN +- returns the size of the array +C-API Array function rb_assoc_new +- returns an array containing the two elements +C-API Array function rb_ary_includes +- returns true if the array includes the element +- returns false if the array does not include the element +C-API Array function rb_ary_aref +- returns the element at the given index +- returns nil for an out of range index +- returns a new array where the first argument is the index and the second is the length +- accepts a range +- returns nil when the start of a range is out of bounds +- returns an empty array when the start of a range equals the last element +C-API Array function rb_iterate +- calls an callback function as a block passed to an method +C-API Array function rb_ary_delete +- removes an element from an array and returns it +- returns nil if the element is not in the array +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/bignum_spec.rb +CApiBignumSpecs rb_big2long +- converts a Bignum +- raises RangeError if passed Bignum overflow long +CApiBignumSpecs rb_big2ll +- converts a Bignum +- raises RangeError if passed Bignum overflow long +CApiBignumSpecs rb_big2ulong +- converts a Bignum +- wraps around if passed a negative bignum +- raises RangeError if passed Bignum overflow long +CApiBignumSpecs rb_big2dbl +- converts a Bignum to a double value +- returns Infinity if the number is too big for a double +- returns -Infinity if the number is negative and too big for a double (FAILED - ) +- prints a warning to $stderr if Bignum is too big for a double +CApiBignumSpecs rb_big2str +- converts a Bignum to a string with base 10 +- converts a Bignum to a string with a different base +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/class_spec.rb +C-API Class function rb_class_new_instance +- allocates and initializes a new object +- passes arguments to the #initialize method +C-API Class function rb_include_module +- includes a module into a class +C-API Class function rb_define_attr +- defines an attr_reader when passed true, false +- defines an attr_writer when passed false, true +- defines an attr_accessor when passed true, true +C-API Class function rb_call_super +- calls the method in the superclass +C-API Class function rb_class2name +- returns the class name +C-API Class function rb_cvar_defined +- returns false when the class variable is not defined +- returns true when the class variable is defined +- returns true if the class instance variable is defined +C-API Class function rb_cv_set +- sets a class variable +C-API Class function rb_cv_get +- returns the value of the class variable +- raises a NameError if the class variable is not defined +C-API Class function rb_cvar_set +- sets a class variable +C-API Class function rb_define_class_variable +- sets a class variable +C-API Class function rb_cvar_get +- returns the value of the class variable +- raises a NameError if the class variable is not defined +C-API Class function rb_class_inherited +- calls superclass.inherited(subclass) +- calls Object.inherited(subclass) if superclass is C NULL +C-API Class function rb_class_new +- returns an new subclass of the superclass +- raises a TypeError if passed Class as the superclass +- raises a TypeError if passed a singleton class as the superclass +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/constants_spec.rb +C-API constant +- rb_cArray references the Array class +- rb_cBignum references the Bignum class +- rb_cClass references the Class class +- rb_mComparable references the Comparable module +- rb_cData references the Data class +- rb_mEnumerable references the Enumerable module +- rb_cFalseClass references the FalseClass class +- rb_cFile references the File class +- rb_cFixnum references the Fixnum class +- rb_cFloat references the Float class +- rb_cHash references the Hash class +- rb_cInteger references the Integer class +- rb_cIO references the IO class +- rb_mKernel references the Kernel module +- rb_cMatch references the MatchData class +- rb_cModule references the Module class +- rb_cNilClass references the NilClass class +- rb_cNumeric references the Numeric class +- rb_cObject references the Object class +- rb_cRange references the Range class +- rb_cRegexp references the Regexp class +- rb_cString references the String class +- rb_cStruct references the Struct class +- rb_cSymbol references the Symbol class +- rb_cThread references the Thread class +- rb_cTrueClass references the TrueClass class +- rb_cProc references the Proc class +C-API exception constant +- rb_eArgError references the ArgumentError class +- rb_eEOFError references the EOFError class +- rb_eErrno references the Errno module +- rb_eException references the Exception class +- rb_eFloatDomainError references the FloatDomainError class +- rb_eIndexError references the IndexError class +- rb_eInterrupt references the Interrupt class +- rb_eIOError references the IOError class +- rb_eLoadError references the LoadError class +- rb_eLocalJumpError references the LocalJumpError class +- rb_eNameError references the NameError class +- rb_eNoMemError references the NoMemoryError class +- rb_eNoMethodError references the NoMethodError class +- rb_eNotImpError references the NotImplementedError class +- rb_eRangeError references the RangeError class +- rb_eRegexpError references the RegexpError class +- rb_eRuntimeError references the RuntimeError class +- rb_eScriptError references the ScriptError class +- rb_eSecurityError references the SecurityError class +- rb_eSignal references the SignalException class +- rb_eStandardError references the StandardError class +- rb_eSyntaxError references the SyntaxError class +- rb_eSystemCallError references the SystemCallError class +- rb_eSystemExit references the SystemExit class +- rb_eSysStackError references the SystemStackError class +- rb_eTypeError references the TypeError class +- rb_eThreadError references the ThreadError class +- rb_eZeroDivError references the ZeroDivisionError class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/data_spec.rb +CApiAllocSpecs (a class with an alloc func defined) +- calls the alloc func +CApiWrappedStruct +- Data_Wrap_Struct should wrap and Data_Get_Struct should return data +- RDATA()->data should return the struct data +- Changing RDATA()->data should change the wrapped struct +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/exception_spec.c: In function ‘exception_spec_rb_set_errinfo’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/exception_spec.c:: warning: implicit declaration of function ‘rb_set_errinfo’ +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/exception_spec.rb +C-API Exception function rb_exc_new +- creates an exception from a C string and length +C-API Exception function rb_exc_new2 +- creates an exception from a C string +C-API Exception function rb_exc_new3 +- creates an exception from a Ruby string +C-API Exception function rb_exc_raise +- raises passed exception +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/float_spec.rb +CApiFloatSpecs rb_float_new +- should create a new float +CApiFloatSpecs RFLOAT +- returns a struct with the Float value +- allows changing the Float value +CApiFloatSpecs rb_Float +- should create a new Float from a String +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/gc_spec.rb +CApiGCSpecs +- correctly gets the value from a registered address +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/globals_spec.rb +CApiGlobalSpecs +- correctly gets global values +- correctly sets global values +- lists all global variables +- rb_define_variable should define a new global variable +- rb_define_readonly_variable should define a new readonly global variable +- rb_define_hooked_variable should define a C hooked global variable +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/hash_spec.rb +C-API Hash function rb_hash_new +- returns a new hash +C-API Hash function rb_hash_aref +- returns the value associated with the key +- returns the default value if it exists +- returns nil if the key does not exist +C-API Hash function rb_hash_aset +- adds the key/value pair and returns the value +C-API Hash function rb_hash_delete +- removes the key and returns the value +C-API Hash function rb_hash_foreach +- iterates over the hash +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/io_spec.rb +C-API IO function rb_io_write +- sends #write to the object passing the object to be written +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/kernel_spec.rb +C-API Kernel function rb_block_given_p +- returns false if no block is passed +- returns true if a block is passed +C-API Kernel function rb_raise +- raises an exception +- terminates the function at the point it was called +C-API Kernel function rb_warn +- prints a message to $stderr if $VERBOSE evaluates to true +- prints a message to $stderr if $VERBOSE evaluates to false +C-API Kernel function rb_sys_fail +- raises an exception from the value of errno +C-API Kernel function rb_yield +- yields passed argument +- returns the result from block evaluation +- raises LocalJumpError when no block is given +C-API Kernel function rb_rescue +- executes passed function +- executes passed 'raise function' if a StardardError exception is raised +- raises an exception if passed function raises an exception other than StardardError +- raises an exception if any exception is raised inside 'raise function' +- makes $! available only during 'raise function' execution +C-API Kernel function rb_rescue2 +- only rescues if one of the passed exceptions is raised +C-API Kernel function rb_ensure +- executes passed function and returns its value +- executes passed 'ensure function' when no exception is raised +- executes passed 'ensure function' when an exception is raised +- raises the same exception raised inside passed function +C-API Kernel function rb_eval_string +- evaluates a string of ruby code +C-API Kernel function rb_block_proc +- converts the implicit block into a proc +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/module_spec.rb +CApiModule rb_define_global_const +- defines a constant on Object +CApiModule rb_const_set given a symbol name and a value +- sets a new constant on a module +- sets an existing constant's value +CApiModule rb_define_class_under +- creates a subclass of the superclass contained in a module +- uses Object as the superclass if NULL is passed +- sets the class name +- call #inherited on the superclass +CApiModule rb_define_module_under +- creates a new module inside the inner class +- sets the module name +CApiModule rb_define_const given a String name and a value +- defines a new constant on a module +- sets an existing constant's value +CApiModule rb_const_defined +- returns C non-zero if a constant is defined +- returns C non-zero if a constant is defined in Object +CApiModule rb_const_defined_at +- returns C non-zero if a constant is defined +- does not search in ancestors for the constant +- does not search in Object +CApiModule rb_const_get +- returns a constant defined in the module +- returns a constant defined at toplevel +- returns a constant defined in a superclass +- calls #const_missing if the constant is not defined in the class or ancestors +CApiModule rb_const_get_from +- returns a constant defined in the module +- returns a constant defined in a superclass +- calls #const_missing if the constant is not defined in the class or ancestors +CApiModule rb_const_get_at +- returns a constant defined in the module +- calls #const_missing if the constant is not defined in the module +CApiModule rb_define_alias +- defines an alias for an existing method +CApiModule rb_define_global_function +- defines a method on Object +CApiModule rb_define_method +- defines a method on a class +- defines a method on a module +CApiModule rb_define_module_function +- defines a module function +- defines a private instance method +CApiModule rb_define_private_method +- defines a private method on a class +- defines a private method on a module +CApiModule rb_define_protected_method +- defines a protected method on a class +- defines a protected method on a module +CApiModule rb_define_singleton_method +- defines a method on the singleton class +CApiModule rb_undef_method +- undef'ines a method on a class +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/numeric_spec.rb +CApiNumericSpecs rb_num2long +- raises an TypeError if passed nil +- converts a Float +- converts a Bignum +- converts a Fixnum +- calls #to_int to coerce the value +CApiNumericSpecs rb_num2ulong +- raises an TypeError if passed nil +- converts a Float +- converts a Bignum +- converts a Fixnum +- calls #to_int to coerce the value +CApiNumericSpecs rb_Integer +- should create a new Integer from a String +CApiNumericSpecs rb_ll2inum +- should create a new Fixnum from a small signed long long +CApiNumericSpecs rb_int2inum +- should create a new Fixnum from a long +CApiNumericSpecs rb_num2dbl +- raises an TypeError if passed nil +- raises an TypeError if passed a String +- converts a Float +- converts a Bignum +- converts a Fixnum +- calls #to_f to coerce the value +CApiNumericSpecs NUM2CHR +- returns the first character of a String +- returns the least significant byte of an Integer +- returns the least significant byte of a Float converted to an Integer +- raises a TypeError when passed an empty String +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/object_spec.rb +CApiObject +- rb_obj_alloc should allocate a new uninitialized object +- rb_obj_call_init should send #initialize +- rb_is_instance_of should return true if an object is an instance +- rb_is_kind_of should return true if an object is an instance or descendent +- rb_respond_to should return 1 if respond_to? is true and 0 if respond_to? is false +- rb_to_id should return a symbol representation of the object +- rb_require should require a ruby file +- rb_attr_get should get an instance variable +- rb_check_array_type should try to coerce to array, otherwise return nil +- rb_check_convert_type should try to coerce to a type, otherwise return nil +- rb_check_string_type should try to coerce to a string, otherwise return nil +- rb_convert_type should try to coerce to a type, otherwise raise a TypeError +- rb_inspect should return a string with the inspect representation +- rb_class_of should return the class of a object +- rb_obj_classname should return the class name of a object +- rb_type should return the type constant for the object +CApiObject RTEST +- returns C false if passed Qfalse +- returns C false if passed Qnil +- returns C true if passed Qtrue +- returns C true if passed a Symbol +- returns C true if passed an Object +CApiObject rb_special_const_p +- returns true if passed Qfalse +- returns true if passed Qtrue +- returns true if passed Qnil +- returns true if passed a Symbol +- returns true if passed a Fixnum +- returns false if passed an Object +CApiObject rb_extend_object +- add the module's instance methods to the object +CApiObject OBJ_TAINT +- taints the object +CApiObject OBJ_TAINTED +- returns C true if the object is tainted +- returns C false if the object is not tainted +CApiObject rb_obj_freeze +- freezes the object passed to it +CApiObject rb_obj_taint +- marks the object passed as tainted +- raises an error if the object passed is frozen +CApiObject rb_check_frozen +- raises an error if the obj is frozen +- does nothing when object isn't frozen +CApiObject rb_any_to_s +- converts obj to string +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/proc_spec.c: In function ‘sp_underline_concat_proc’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/proc_spec.c:: warning: implicit declaration of function ‘rb_proc_new’ +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/proc_spec.rb +CApiProc +- rb_proc_new should return a new valid Proc +- rb_proc_new returned proc should have arity -1 +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/range_spec.rb +C-API Range function rb_range_new - constructs a range using the given start and end - includes the end object when the third parameter is omitted or false - raises an ArgumentError when the given start and end can't be compared by using #<=> +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/safe_spec.rb +CApiSafeSpecs +- has a default safe level of 0 +- throws an error when rb_secure is called with argument >= SAFE +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_rb_str2cstr’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_rb_str2cstr_replace’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_rb_str_len’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: implicit declaration of function ‘rb_str_len’ +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_STR2CSTR’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_STR2CSTR_replace’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/string_spec.c:: warning: ‘rb_str2cstr’ is deprecated (declared at /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/x86_64-linux/ruby.h:306) +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/string_spec.rb +C-API String function rb_str_new +- returns a new string object from a char buffer of len characters +- returns an empty string if len is 0 +C-API String function rb_str_new2 +- returns a new string object calling strlen on the passed C string +- rb_str_new2 should raise ArgumentError if passed NULL +C-API String function rb_str_new3 +- returns a copy of the string +C-API String function rb_str_dup +- returns a copy of the string +C-API String function rb_str_append +- appends a string to another string +C-API String function rb_str_plus +- returns a new string from concatenating two other strings +C-API String function rb_str_buf_cat +- concatenates a C string to a ruby string +C-API String function rb_str_cat +- concatenates a C string to ruby string +C-API String function rb_str_cat2 +- concatenates a C string to a ruby string +C-API String function rb_str_cmp +- returns 0 if two strings are identical +- returns -1 if the first string is shorter than the second +- returns -1 if the first string is lexically less than the second +- returns 1 if the first string is longer than the second +- returns 1 if the first string is lexically greater than the second +C-API String function rb_str_split +- splits strings over a splitter +C-API String function rb_str2inum +- converts a string to a number given a base +C-API String function rb_cstr2inum +- converts a C string to a number given a base +C-API String function rb_str_substr +- returns a substring +C-API String function rb_str_to_str +- calls #to_str to coerce the value to a String +- raises a TypeError if coercion fails +C-API String function RSTRING +- returns struct with a pointer to the string's contents +- allows changing the characters in the string +- allows changing the string and calling a rb_str_xxx function +- allows changing the string and calling a method via rb_funcall +- returns a struct with the string's length +C-API String function RSTRING_PTR +- returns a pointer to the string's contents +- allows changing the characters in the string +- reflects changes after a rb_funcall +C-API String function RSTRING_LEN +- returns the size of the string +C-API String function StringValue +- does not call #to_str on a String +- does not call #to_s on a String - calls #to_str on non-String objects +- does not call #to_s on non-String objects +C-API String function rb_str_resize +- reduces the size of the string +- updates the string's attributes visible in C code +- increases the size of the string +C-API String function rb_str_intern +- returns a symbol created from the string +- raises an ArgumentError if passed an empty string +- raises an ArgumentError if the passed string contains NULL characters +C-API String function rb_str2cstr +- returns a pointer to the string's content and its length +- allows changing the characters in the string +- issues a warning iff passed string contains a NULL character, $VERBOSE = true and len parameter is NULL +C-API String function STR2CSTR +- returns a pointer to the string's content +- allows changing the characters in the string +C-API String function rb_str_freeze +- freezes the string +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/struct_spec.rb +CApiStruct +- rb_struct_define defines a structure +- rb_struct_define allows for anonymous structures +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/symbol_spec.rb +C-API Symbol function rb_is_const_id +- returns true given a const-like symbol +- returns false given an ivar-like symbol +- returns false given a cvar-like symbol +- returns false given an undecorated symbol +C-API Symbol function rb_is_instance_id +- returns false given a const-like symbol +- returns true given an ivar-like symbol +- returns false given a cvar-like symbol +- returns false given an undecorated symbol +C-API Symbol function rb_is_class_id +- returns false given a const-like symbol +- returns false given an ivar-like symbol +- returns true given a cvar-like symbol +- returns false given an undecorated symbol +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/thread_spec.c: In function ‘thread_spec_rb_thread_blocking_region’: +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/ext/thread_spec.c:: warning: implicit declaration of function ‘rb_thread_blocking_region’ +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/thread_spec.rb +CApiThreadSpecs rb_thread_select +- returns true if an fd is ready to read +- does not block all threads +CApiThreadSpecs rb_thread_alone +- returns true if there is only one thread +CApiThreadSpecs rb_thread_current +- equals Thread.current +CApiThreadSpecs rb_thread_local_aref +- returns the value of a thread-local variable +- returns nil if the value has not been set +CApiThreadSpecs rb_thread_local_aset +- sets the value of a thread-local variable +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/time_spec.rb +CApiTimeSpecs rb_time_new +- creates a Time from the sec and usec /home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/ffi/buffer_spec.rb (ERROR - ) /home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/ffi/callback_spec.rb @@ 33187 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/helpers/language_version.rb:23:in `language_version' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/helpers/language_version.rb:20:in `each' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/helpers/language_version.rb:20:in `language_version' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/language/symbol_spec.rb:82 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34198 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) +Delegator when frozen is not writeable FAILED Expected RuntimeError but no exception was raised /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/should.rb:8:in `should' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/frozen_spec.rb:22 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 34215 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/frozen_spec.rb:4 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34235 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/marshal_spec.rb:20 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 34248 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/marshal_spec.rb:4 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 34265 @@ SimpleDelegator.new forwards private method calls made via send or __send__ ERROR NoMethodError: undefined method `priv' for #> /home/chkbuild/tmp/build/ruby-1.8//lib/ruby/1.8/delegate.rb:157:in `method_missing' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/send_spec.rb:25:in `send' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/send_spec.rb:25 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 34279 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:199:in `process' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/library/delegate/delegator/send_spec.rb:4 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 37080 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/bin/mspec-run:8 ) +CApiBignumSpecs rb_big2dbl returns -Infinity if the number is negative and too big for a double FAILED +Expected Infinity + to equal -Infinity /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/expectations/expectations.rb:15:in `fail_with' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/matchers/base.rb:8:in `==' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/bignum_spec.rb:84 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `protect' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `protect' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/bignum_spec.rb:56:in `all?' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `each' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `all?' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:179:in `protect' @@ 37102 @@ /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/context.rb:228:in `process' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:37:in `describe' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/object.rb:11:in `describe' +/home/chkbuild/tmp/build/ruby-1.8//rubyspec/optional/capi/bignum_spec.rb:9 /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `load' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:56:in `files' /home/chkbuild/tmp/build/ruby-1.8//mspec/lib/mspec/runner/mspec.rb:68:in `instance_eval' @@ 37459 @@ Finished in seconds +3195 files, 13215 examples, expectations, 93 failures, 91 errors exit 1 failed(rubyspec) == end #