COMMIT lib/delegate: basic specs for {un}{trust/taint} [ruby-core:26138] http://github.com/rubyspec/rubyspec/commit/76634008753c73e118798f4621f7c061508e1ace =================================================================== +++ 20100623T081519 @@ 12 @@ URL: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1 リポジトリのルート: http://svn.ruby-lang.org/repos/ruby リポジトリ UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e +リビジョン: 28396 ノード種別: ディレクトリ 準備中の処理: 特になし 最終変更者: yugui @@ 9947 @@ s: . OpenSSL::TestSSL#test_sslctx_set_params: /home/chkbuild/tmp/build/ruby-1.9.1//ruby/.ext/common/openssl/ssl.rb:: warning: using default DH parameters. s: . +OpenSSL::TestSSL#test_starttls: /home/chkbuild/tmp/build/ruby-1.9.1//ruby/.ext/common/openssl/buffering.rb:: warning: SSL session is not started yet. /home/chkbuild/tmp/build/ruby-1.9.1//ruby/.ext/common/openssl/buffering.rb:: warning: SSL session is not started yet. /home/chkbuild/tmp/build/ruby-1.9.1//ruby/.ext/common/openssl/buffering.rb:: warning: SSL session is not started yet. /home/chkbuild/tmp/build/ruby-1.9.1//ruby/.ext/common/openssl/buffering.rb:: warning: SSL session is not started yet. @@ 19947 @@ /home/chkbuild/tmp/build/ruby-1.9.1//ruby/ext/socket/extconf.rb:: warning: ambiguous first argument; put parentheses or even spaces /home/chkbuild/tmp/build/ruby-1.9.1//ruby/ext/json/lib/json/editor.rb:: warning: shadowing outer local variable - item s: . +TestSystem#test_system: /home/chkbuild/tmp/build/ruby-1.9.1//tmp/ruby_script_tmp20100623-26178-14djsbm/ruby_script_tmp.26178:: warning: global variable `$zzz' not initialized s: . TestTCPSocket#test_encoding: s: . TestTCPSocket#test_recvfrom: s: . @@ 64506 @@ ) Delegator when frozen creates a frozen clone ERROR RuntimeError: can't modify frozen object +/home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/fixtures/classes.rb:51:in `__setobj__' /home/chkbuild/tmp/build/ruby-1.9.1//lib/ruby/1.9.1/delegate.rb:190:in `clone' /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/frozen_spec.rb:26:in `block (3 levels) in ' /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/frozen_spec.rb:4:in `' @@ 64623 @@ ) Delegator#methods includes all public methods of the delegate object FAILED +Expected [:data, :data=, :__getobj__, :__setobj__, :extra, :extra_protected, :method_missing, :respond_to?, :==, :marshal_dump, :marshal_load, :clone, :dup, :be_an_instance_of, :be_ancestor_of, :be_close, :be_computed_by, :be_empty, :be_false, :be_kind_of, :be_nil, :be_true, :new_fd, :new_io, :complain, :eql, :equal, :equal_element, :with_feature, :encode, :equal_utf16, :have_constant, :have_class_variable, :fmode, :have_data, :have_instance_method, :have_instance_variable, :have_method, :have_private_instance_method, :have_private_method, :have_protected_instance_method, :have_public_instance_method, :match_yaml, :raise_error, :output, :tmp, :output_to_fd, :respond_to, :should, :should_not, :metaclass, :__mspec_object_id__, :stub!, :should_receive, :should_not_receive, :mock, :mock_numeric, :before, :after, :describe, :it, :it_should_behave_like, :doc, :context, :specify, :it_behaves_like, :process_is_foreground, :ruby_version_is, :ruby_bug, :compliant_on, :not_compliant_on, :conflicts_with, :big_endian, :little_endian, :extended_on, :deviates_on, :platform_is, :platform_is_not, :quarantine!, :runner_is, :runner_is_not, :unspecified, :specified_on, :not_supported_on, :as_superuser, :with_tty, :as_user, :argv, :responds_to, :does_not_respond_to, :undefine, :fake!, :enumerator_class, :env, :windows_env_echo, :username, :home_directory, :dev_null, :fixture, :flunk, :cp, :mkdir_p, :rm_r, :touch, :hash_class, :new_hash, :language_version, :mock_to_path, :nan_value, :infinity_value, :bignum_value, :fixnum_max, :fixnum_min, :ruby_exe_options, :resolve_ruby_exe, :ruby_exe, :pretty_print, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print_inspect, :nil?, :eql?, :class, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :extend, :display, :method, :public_method, :define_singleton_method, :hash, :__id__, :object_id, :to_enum, :enum_for, :gem, :const_lookup, :pretty_inspect, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__] to include :pub /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/methods_spec.rb:33:in `block (3 levels) in ' /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/methods_spec.rb:4:in `' ) Delegator#methods includes all protected methods of the delegate object FAILED +Expected [:data, :data=, :__getobj__, :__setobj__, :extra, :extra_protected, :method_missing, :respond_to?, :==, :marshal_dump, :marshal_load, :clone, :dup, :be_an_instance_of, :be_ancestor_of, :be_close, :be_computed_by, :be_empty, :be_false, :be_kind_of, :be_nil, :be_true, :new_fd, :new_io, :complain, :eql, :equal, :equal_element, :with_feature, :encode, :equal_utf16, :have_constant, :have_class_variable, :fmode, :have_data, :have_instance_method, :have_instance_variable, :have_method, :have_private_instance_method, :have_private_method, :have_protected_instance_method, :have_public_instance_method, :match_yaml, :raise_error, :output, :tmp, :output_to_fd, :respond_to, :should, :should_not, :metaclass, :__mspec_object_id__, :stub!, :should_receive, :should_not_receive, :mock, :mock_numeric, :before, :after, :describe, :it, :it_should_behave_like, :doc, :context, :specify, :it_behaves_like, :process_is_foreground, :ruby_version_is, :ruby_bug, :compliant_on, :not_compliant_on, :conflicts_with, :big_endian, :little_endian, :extended_on, :deviates_on, :platform_is, :platform_is_not, :quarantine!, :runner_is, :runner_is_not, :unspecified, :specified_on, :not_supported_on, :as_superuser, :with_tty, :as_user, :argv, :responds_to, :does_not_respond_to, :undefine, :fake!, :enumerator_class, :env, :windows_env_echo, :username, :home_directory, :dev_null, :fixture, :flunk, :cp, :mkdir_p, :rm_r, :touch, :hash_class, :new_hash, :language_version, :mock_to_path, :nan_value, :infinity_value, :bignum_value, :fixnum_max, :fixnum_min, :ruby_exe_options, :resolve_ruby_exe, :ruby_exe, :pretty_print, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print_inspect, :nil?, :eql?, :class, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :extend, :display, :method, :public_method, :define_singleton_method, :hash, :__id__, :object_id, :to_enum, :enum_for, :gem, :const_lookup, :pretty_inspect, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__] to include :prot /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/methods_spec.rb:37:in `block (3 levels) in ' /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/methods_spec.rb:4:in `' @@ 64747 @@ ) Delegator#public_methods includes public methods of the delegate object FAILED +Expected [:data, :data=, :__getobj__, :__setobj__, :extra, :method_missing, :respond_to?, :==, :marshal_dump, :marshal_load, :clone, :dup, :be_an_instance_of, :be_ancestor_of, :be_close, :be_computed_by, :be_empty, :be_false, :be_kind_of, :be_nil, :be_true, :new_fd, :new_io, :complain, :eql, :equal, :equal_element, :with_feature, :encode, :equal_utf16, :have_constant, :have_class_variable, :fmode, :have_data, :have_instance_method, :have_instance_variable, :have_method, :have_private_instance_method, :have_private_method, :have_protected_instance_method, :have_public_instance_method, :match_yaml, :raise_error, :output, :tmp, :output_to_fd, :respond_to, :should, :should_not, :metaclass, :__mspec_object_id__, :stub!, :should_receive, :should_not_receive, :mock, :mock_numeric, :before, :after, :describe, :it, :it_should_behave_like, :doc, :context, :specify, :it_behaves_like, :process_is_foreground, :ruby_version_is, :ruby_bug, :compliant_on, :not_compliant_on, :conflicts_with, :big_endian, :little_endian, :extended_on, :deviates_on, :platform_is, :platform_is_not, :quarantine!, :runner_is, :runner_is_not, :unspecified, :specified_on, :not_supported_on, :as_superuser, :with_tty, :as_user, :argv, :responds_to, :does_not_respond_to, :undefine, :fake!, :enumerator_class, :env, :windows_env_echo, :username, :home_directory, :dev_null, :fixture, :flunk, :cp, :mkdir_p, :rm_r, :touch, :hash_class, :new_hash, :language_version, :mock_to_path, :nan_value, :infinity_value, :bignum_value, :fixnum_max, :fixnum_min, :ruby_exe_options, :resolve_ruby_exe, :ruby_exe, :pretty_print, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print_inspect, :nil?, :eql?, :class, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :extend, :display, :method, :public_method, :define_singleton_method, :hash, :__id__, :object_id, :to_enum, :enum_for, :gem, :const_lookup, :pretty_inspect, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__] to include :pub /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/public_methods_spec.rb:23:in `block (3 levels) in ' /home/chkbuild/tmp/build/ruby-1.9.1//rubyspec/library/delegate/delegator/public_methods_spec.rb:4:in `' @@ 64772 @@ Finished in seconds 1 file, 4 examples, 5 expectations, 0 failures, 0 errors +== rubyspec/library/delegate/delegator/taint_spec.rb #