OLDREV 30489 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30489&diff_format=u NEWREV 30495 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30495&diff_format=u CHG ChangeLog 30488->30494 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?p1=trunk/ChangeLog&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG complex.c 30082->30491 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/complex.c?p1=trunk/complex.c&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG enum.c 30439->30494 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?p1=trunk/enum.c&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG io.c 30425->30495 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?p1=trunk/io.c&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG pack.c 30285->30493 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/pack.c?p1=trunk/pack.c&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG string.c 30481->30495 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?p1=trunk/string.c&r1=30489&r2=30495&pathrev=30495&diff_format=u CHG thread.c 30358->30490 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?p1=trunk/thread.c&r1=30489&r2=30495&pathrev=30495&diff_format=u COMMIT Fixed C-API specs after RubySpec sync. http://github.com/rubyspec/rubyspec/commit/fffa80d2d8ab605bbbf3c71d691edfe7fed35d60 COMMIT More C-API spec cleanup. http://github.com/rubyspec/rubyspec/commit/a15b26ca5f6da3be4ef20ffb99b358f5842a8ccd =================================================================== +++ 20110108T224149Z @@ 7360 @@ OpenSSL::TestSSL#test_server_session = s = . OpenSSL::TestSSL#test_ssl_read_nonblock = s = . OpenSSL::TestSSL#test_sslctx_set_params = s = . +OpenSSL::TestSSL#test_starttls = s = . OpenSSL::TestSSL#test_tlsext_hostname = s = . OpenSSL::TestSSL#test_verify_result = s = . OpenSSL::TestX509CRL#test_basic = s = . @@ 47587 @@ /home/chkbuild/tmp/build/ruby-trunk//rubyspec/library/zlib/zstream/stream_end_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/library/zlib/zstream/total_in_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/library/zlib/zstream/total_out_spec.rb +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/array_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/array_spec.c: In function ‘sub_pair’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/array_spec.c:: warning: control reaches end of non-void function C-API Array function rb_ary_new @@ 47612 @@ - joins elements of an array with a string C-API Array function rb_ary_to_s +- creates an Array literal representation as a String C-API Array function rb_ary_reverse - reverses the order of elements in the array @@ 47674 @@ C-API Array function rb_mem_clear - sets elements of a C array to nil +C-API Array function rb_ary_freeze +- freezes the object exactly like Object#freeze +C-API Array function rb_ary_delete_at +- removes an element from an array at the specified index /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/bignum_spec.rb CApiBignumSpecs rb_big2long @@ 47704 @@ - converts a Bignum to a string with a different base CApiBignumSpecs RBIGNUM_SIGN +- returns C true if the Bignum has a positive sign +- retuns C false if the Bignum has a negative sign /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/class_spec.rb C-API Class function rb_class_new_instance @@ 47895 @@ C-API Hash function rb_hash_foreach - iterates over the hash +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/io_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/io_spec.c: In function ‘io_spec_rb_io_wait_readable’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/io_spec.c:: warning: implicit declaration of function ‘read’ C-API IO function rb_io_write @@ 47968 @@ C-API Kernel function rb_rescue - executes passed function +- executes passed 'raise function' if a StandardError exception is raised +- passes the user supplied argument to the 'raise function' if a StandardError exception is raised +- passes the raised exception to the 'raise function' if a StandardError exception is raised - raises an exception if passed function raises an exception other than StandardError - raises an exception if any exception is raised inside 'raise function' - makes $! available only during 'raise function' execution @@ 48087 @@ CApiModule rb_class2name - returns the module name +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/numeric_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/numeric_spec.c: In function ‘numeric_spec_rb_num_zerodiv’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/numeric_spec.c:: warning: control reaches end of non-void function CApiNumericSpecs rb_num2long @@ 48281 @@ - has a default safe level of 0 - throws an error when rb_secure is called with argument >= SAFE +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/string_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/string_spec.c: In function ‘string_spec_rb_str_new2_with_null’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/string_spec.c:: warning: null argument where non-null required (argument 1) /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/string_spec.c:: warning: null argument where non-null required (argument 1) +C-API String function rb_str_set_len +- reduces the size of the string +- inserts a NULL byte at the length +- updates the string's attributes visible in C code +C-API String function rb_str_buf_new +- returns the equivalent of an empty string +- returns a string that can be appended to +- returns a string that can be concatentated to another string +- returns a string whose bytes can be accessed by RSTRING_PTR +- returns a string that can be modified by rb_str_set_len +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 +C-API String function rb_str_new3 +- returns a copy of the string +C-API String function rb_str_new4 +- returns the original string if it is already frozen +- returns a frozen 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_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 +- returns a symbol even if passed an empty string +- returns a symbol even if the passed string contains NULL characters +C-API String function rb_str_freeze +- freezes the string +C-API String function rb_str_hash +- hashes the string into a number (FAILED - ) /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/struct_spec.rb C-API Struct function rb_struct_define @@ 48408 @@ C-API Struct function rb_struct_new - creates a new instance of a struct +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/symbol_spec.rb C-API Symbol function rb_intern - converts a string to a symbol, uniquely @@ 48433 @@ - returns true given a cvar-like symbol - returns false given an undecorated symbol +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/thread_spec.rb /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c: In function ‘blocking_func’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c:: warning: implicit declaration of function ‘read’ /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c: In function ‘unblock_func’: /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c:: warning: implicit declaration of function ‘write’ @@ 48441 @@ /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c:: warning: implicit declaration of function ‘pipe’ /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/ext/thread_spec.c:: warning: implicit declaration of function ‘close’ +C-API Thread function rb_thread_select +- returns true if an fd is ready to read +- does not block all threads +C-API Thread function rb_thread_wait_for +- sleeps the current thread for the give ammount of time +C-API Thread function rb_thread_alone +- returns true if there is only one thread +C-API Thread function rb_thread_current +- equals Thread.current +C-API Thread function rb_thread_local_aref +- returns the value of a thread-local variable +- returns nil if the value has not been set +C-API Thread function rb_thread_local_aset +- sets the value of a thread-local variable +C-API Thread function rb_thread_wakeup - is not queued - does not result in a deadlock - raises a ThreadError when trying to wake up a dead thread +C-API Thread function rb_thread_blocking_region +- runs a C function with the global lock unlocked +- runs a C function with the global lock unlocked /home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/time_spec.rb CApiTimeSpecs rb_time_new @@ 48593 @@ ) UNIXSocket#recv_io takes an optional mode to use ERROR +NoMethodError: undefined method `mode' for # /home/chkbuild/tmp/build/ruby-trunk//rubyspec/library/socket/unixsocket/recv_io_spec.rb:48:in `block (3 levels) in ' /home/chkbuild/tmp/build/ruby-trunk//rubyspec/library/socket/unixsocket/recv_io_spec.rb:4:in `' ) +C-API String function rb_str_hash hashes the string into a number FAILED +Expected -4822748827205376995 + to equal 4400623209649398813 +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/string_spec.rb:429:in `block (3 levels) in ' +/home/chkbuild/tmp/build/ruby-trunk//rubyspec/optional/capi/string_spec.rb:5:in `' Finished in seconds +3328 files, 16955 examples, expectations, 12 failures, 3 errors exit 1 failed(rubyspec) == dist #