COMMIT Merge branch 'jruby-capi-work' of http://github.com/timfel/rubyspec into timfel http://github.com/rubyspec/rubyspec/commit/43e10ba8e473a417ff80a2d9bb8d734cef479002 COMMIT add capi io spec for fd access via GetOpenFile http://github.com/rubyspec/rubyspec/commit/36974c48e3d2874687ad29b334effb7d8f263e6c COMMIT add specs for regex functioniality http://github.com/rubyspec/rubyspec/commit/d58b084ff16f7fcc7e0b7f03631963af523d5693 COMMIT add capi spec for rb_scan_args http://github.com/rubyspec/rubyspec/commit/e36791bcc0021451ad5b0415c7bcaae3a73bf0e9 COMMIT add more capi io specs http://github.com/rubyspec/rubyspec/commit/45a93b9a18c4f0489f0c5784ccb38323ac5322e1 COMMIT add rb_id2name spec http://github.com/rubyspec/rubyspec/commit/c973edd15ad48d7bd093756510577759538e581b COMMIT add specs for rb_str_buf_new http://github.com/rubyspec/rubyspec/commit/1ebdc8c6328a2eee271448acc6f37e97bc6f0acf COMMIT add capi specs for instance variable access http://github.com/rubyspec/rubyspec/commit/b09cc76b573825827812ecf818e932e76f8168e4 COMMIT ad rb_intern spec http://github.com/rubyspec/rubyspec/commit/be04c895a6366c2c87efe3967cbd0eec3ec90b48 COMMIT describe rb_undef for capi specs http://github.com/rubyspec/rubyspec/commit/da754a58243a6c660dc2d515bc8befaa0da8edf4 COMMIT add capi spec rb_yield_splat http://github.com/rubyspec/rubyspec/commit/4b85dcc38d70b2b5b10fd12a751727006208746a COMMIT don't use RARRAY on 1.9 http://github.com/rubyspec/rubyspec/commit/d512155cd8bf800dfebda05c6867b2b1fceeeb74 COMMIT fix typo http://github.com/rubyspec/rubyspec/commit/ff2b87472de318ffa36c8f7edd6a67590672137c COMMIT add jruby undefs http://github.com/rubyspec/rubyspec/commit/44b2f168e4d1e5374154b900871fc5f4e1e61a4c COMMIT add additional C api spec for rb_ary_new2 http://github.com/rubyspec/rubyspec/commit/c9a847097c983ca57b9268a87dc5d8f33d39b3ba COMMIT catch a more generic system error, because jruby will have a different error code here http://github.com/rubyspec/rubyspec/commit/fed3c4509917c3e187fd52532fde7b30d72c11ab COMMIT add jruby to capi spec guards for things jruby does not support http://github.com/rubyspec/rubyspec/commit/571e3de3403deab84ec130b96682640bb6a5f30c COMMIT spec for rb_ary_new3 http://github.com/rubyspec/rubyspec/commit/5b4ceda9b6530cb1240d3cc5360b598ed76e47dc COMMIT add capi spec for class_name http://github.com/rubyspec/rubyspec/commit/5b7a5734666c4003dcad35542bac0bef8cb90ea4 COMMIT capi spec for rb_ary_delete_at http://github.com/rubyspec/rubyspec/commit/0380f70133d5e4b9ec3780fba3b090a9a7fbb08b COMMIT capi spec for rb_ary_new4 http://github.com/rubyspec/rubyspec/commit/7efb0b1e89583f1aac7d272bc86c14b8645a063a COMMIT add spec for rb_path2class http://github.com/rubyspec/rubyspec/commit/388a6e7acd0dc5d90f6c0eed526e6c5651f21944 COMMIT add C api spec for rb_obj_instance_eval http://github.com/rubyspec/rubyspec/commit/0a17d1b55b92bcde25b607b7fe058ffb4c3ba2ab COMMIT adjust to work with jruby cext http://github.com/rubyspec/rubyspec/commit/2e9e3f6dd185f937aca07608eb85d1aca7d8ba8d =================================================================== +++ 20101020T005925 @@ 32372 @@ C-API Array function rb_ary_new2 - returns an empty array +- returns an array which can be assigned to from C +C-API Array function rb_ary_new3 +- returns an array with the passed cardinality and varargs +C-API Array function rb_ary_new4 +- returns returns an array with the passed values C-API Array function rb_ary_push - adds an element to the array @@ 32452 @@ - removes an element from an array and returns it - returns nil if the element is not in the array +C-API Array function rb_ary_delete_at +- removes an element from an array at the specified index /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/bignum_spec.rb CApiBignumSpecs rb_big2long @@ 32497 @@ C-API Class function rb_class2name - returns the class name +C-API Class function rb_class_name - returns the class name +C-API Class function rb_path2class +- returns the class C-API Class function rb_cvar_defined - returns false when the class variable is not defined @@ 32660 @@ C-API Hash function rb_hash_foreach - iterates over the hash +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/ext/io_spec.c: In function ‘io_spec_rb_io_wait_readable’: +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/ext/io_spec.c:: warning: implicit declaration of function ‘read’ /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/io_spec.rb C-API IO function rb_io_write - sends #write to the object passing the object to be written +C-API IO function rb_io_check_readable +- raises an IOError if the io isn't opened for reading +- raises no error if the io is opened for reading +C-API IO function rb_io_check_writable +- raises no error if the io is opened for writing +- raises an IOError if the io is not opened for reading +C-API IO function rb_io_check_closed +- raises an error only if the io is closed +C-API IO function rb_io_wait_writeable +- raises and IOError if passed a closed stream +C-API IO function rb_io_wait_readable +- blocks until the io is readable +- raises and IOError if passed a closed stream +C-API IO function GetOpenFile +- allows access to the system fileno /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/kernel_spec.rb C-API Kernel function rb_block_given_p @@ 32719 @@ - returns the result from block evaluation - raises LocalJumpError when no block is given +C-API Kernel function rb_yield_splat +- yields with passed array's contents - returns the result from block evaluation - raises LocalJumpError when no block is given @@ 32820 @@ CApiModule rb_undef_method - undef'ines a method on a class +CApiModule rb_undef - undef'ines a method on a class CApiModule rb_class2name @@ 32911 @@ CApiObject rb_obj_freeze - freezes the object passed to it +CApiObject rb_obj_instance_eval +- evaluates the block in the object context, that includes private methods CApiObject rb_obj_taint - marks the object passed as tainted @@ 32936 @@ - raises a TypeError if called with false - raises a TypeError if called with a String +CApiObject instance variable access rb_iv_get +- returns the instance variable on an object +- returns nil if the instance variable has not been initialized +CApiObject instance variable access rb_iv_set +- sets and returns the instance variable on an object +CApiObject instance variable access rb_ivar_get +- returns the instance variable on an object +- returns nil if the instance variable has not been initialized +CApiObject instance variable access rb_ivar_set +- sets and returns the instance variable on an object +CApiObject instance variable access rb_ivar_defined +- returns true if the instance variable is defined +- returns false if the instance variable is not defined /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/proc_spec.rb CApiProc @@ 32965 @@ - 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 #<=> +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/regexp_spec.rb +C-API Regex functions +- allows matching in C, properly setting the back references +C-API Regex functions rb_reg_options +- returns the options used to create the regexp +C-API Regex functions rb_reg_regcomp +- creates a valid regexp from a string /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/safe_spec.rb CApiSafeSpecs @@ 33001 @@ C-API String function rb_str_new3 - returns a copy of the string +C-API String function rb_str_buf_new - returns an empty string +- returns a string which can be assigned to from C C-API String function rb_str_dup - returns a copy of the string @@ 33095 @@ - rb_struct_define allows for anonymous structures - rb_struct_define defines a structure and returns members as string - rb_struct_define allows for anonymous structures +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/ext/symbol_spec.c: In function ‘symbol_spec_rb_id2name’: +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/ext/symbol_spec.c:: warning: initialization discards qualifiers from pointer target type /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/symbol_spec.rb +C-API Symbol function rb_intern +- converts a string to a symbol, uniquely +C-API Symbol function rb_id2name +- converts a symbol to a C char array C-API Symbol function rb_is_const_id - returns true given a const-like symbol @@ 33147 @@ CApiTimeSpecs rb_time_new - creates a Time from the sec and usec +/var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/capi/util_spec.rb +C-API Util function rb_scan_args +- should assign all required arguments +- should assign all required and all passed optional arguments +- should assign all required and all optional arguments and splat the rest +- should assign all arguments and a possible block /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/ffi/buffer_spec.rb (ERROR - ) /var/lib/chkbuild/tmp/build/ruby-1.8-o3//rubyspec/optional/ffi/callback_spec.rb @@ 37649 @@ Finished in seconds +3304 files, 13679 examples, expectations, 72 failures, 75 errors exit 1 failed(rubyspec) == end #