aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/win32ole/test_win32ole_typelib.rb: add some illegal argument test.suke2008-07-105-0/+27
| | | | | | | | | | | | | * test/win32ole/test_win32ole_type.rb: ditto. * test/win32ole/test_win32ole_event.rb: ditto. * test/win32ole/test_win32ole_param.rb: ditto. * test/win32ole/test_win32ole_method.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): r17993 revert.wanabe2008-07-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_normal_exit): finish writing scriptwanabe2008-07-101-2/+2
| | | | | | before spawn("ruby") to avoid blocking in win32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_succ): alphabets or numerics mutually enclosingnobu2008-07-081-0/+1
| | | | | | | | non-alphanumeric characters can carry up. e.g., "1.999".succ should be "2.000". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (find_default_source): bug fix whensuke2008-07-081-0/+10
| | | | | | | | | OLE object does not have default source interface. * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (find_default_source): try tosuke2008-07-081-0/+14
| | | | | | | | | find COCLASS when WIN32OLE object is not COCLASS. * test/win32ole/test_win32ole_event.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_succ): limit carrying in an alphanumeric region ifnobu2008-07-071-0/+5
| | | | | | | exists. [ruby-dev:35094] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(Init_win32ole): addsuke2008-07-071-1/+52
| | | | | | | | | | | WIN32OLE_TYPE#source_ole_types, WIN32OLE_TYPE#default_ole_types, WIN32OLE_TYPE#default_event_sources. * test/win32ole/test_win32ole_type.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.naruse2008-07-071-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_type.rb (test_initialize): add suke2008-07-061-1/+16
| | | | | | | | more assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_str_slice! refactored.akr2008-07-051-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_word.rb: check word installed.suke2008-07-051-25/+52
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: add WIN32OLE#ole_respond_to?suke2008-07-051-0/+10
| | | | | | | * test/win32ole/test_win32ole.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (unescape_nonascii): add has_property argument not toakr2008-07-041-0/+8
| | | | | | | | | raise error by /\p{Hiragana}\u{3042}/ in EUC-JP script. (rb_reg_preprocess): use has_property argument to make regexp encoding fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (unescape_nonascii): make regexp fixed_encoding if \p is used.akr2008-07-041-0/+19
| | | | | | | fixed [ruby-core:17279]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE suke2008-07-041-0/+38
| | | | | | | | | to String conversion when negative value. * test/win32ole/test_win32ole_variant.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new file.akr2008-07-031-0/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c: avoid creating Ruby object duringsuke2008-07-021-0/+2
| | | | | | | | | | GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313] * test/win32ole/test_win32ole_event.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb: fix expected traces formame2008-07-011-14/+24
| | | | | | | RubyVM::FrozenCore's event and r17744. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/ui/console/testrunner.rb: prevent destructive modification ↵mame2008-07-014-39/+77
| | | | | | | | | | | | | | | to $0. * test/rubygems/gemutilities.rb (build_rake_in): move from test_gem_ext_rake_builder.rb. * test/rubygems/test_gem_ext_rake_builder.rb: ditto. * test/rubygems/test_gem_installer.rb: override Gem.ruby and ENV["rake"]. * test/rubygems/test_gem_uninstaller.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),nobu2008-07-011-6/+26
| | | | | | | | | | | | | (Gem::Ext::Builder.run): EXIT_SUCCESS may be 0 or may not. * test/rubygems/test_gem_ext_rake_builder.rb (build_rake_in): override Gem.ruby and ENV["rake"]. * runruby.rb: bin/rake does not exist in archdir where architecture depend script (i.e. rbconfig.rb) exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RubyGems patches by Yusuke ENDOH [ruby-core:17442], [ruby-core:17444].drbrain2008-06-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ssl.rb (start_server): shutdown TCPServer beforemame2008-06-301-7/+12
| | | | | | | close. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add an assertion.akr2008-06-301-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb (test_raise): reveal an exceptionmame2008-06-301-2/+6
| | | | | | | hided by rescue modifier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_aset): access with too big indexmame2008-06-301-2/+2
| | | | | | | raises not ArgumentError but IndexError now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34619].akr2008-06-301-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb (_test_request__file): specify encodingmame2008-06-292-2/+3
| | | | | | | | | explicitly. * test/net/http/utils.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c, vm_core.h,vm_core.h, vm_dump.c, iseq.c: rename class nameko12008-06-292-4/+4
| | | | | | | | | | | | VM -> RubyVM, and rename rb_cVM -> rb_cRubyVM. "VM" is too short name for class. * test/ruby/test_method.rb, test/ruby/test_settracefunc.rb: ditto. * include/ruby/ruby.h: rb_cRubyVM, rb_cEnv, rb_cISeq should not be exposed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_parse.rb: remove tests for open_args.mame2008-06-291-48/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb (RSS::Maker::RSSBase#to_feed): raisekou2008-06-291-15/+31
| | | | | | | | exception not return nil if RSS::Maker.make can't get required information. * test/rss/rss-assertions.rb: follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.kou2008-06-293-7/+10
| | | | | | | * test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION): 0.2.4 -> 0.2.5.kou2008-06-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix test_status_kill for coredump message in Process::Status#inspect.akr2008-06-281-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:34958].akr2008-06-281-0/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't useakr2008-06-281-3/+5
| | | | | | | fixed /tmp/apple_gem_home directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c : check String encoding whensuke2008-06-271-4/+5
| | | | | | | | | | converting String to VT_BSTR in OLE. * test/win32ole/test_win32ole.rb : ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c: fix rounding negative float.akr2008-06-271-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/inlinetest.rb (InlineTest.in_progname): workaround for frozennobu2008-06-271-3/+3
| | | | | | | | | $0. [ruby-dev:35261] * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/erb.rb: adjust line number for magic comment.kazu2008-06-271-1/+26
| | | | | | | * test/erb/test_erb.rb: add tests for def_method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Upgrade to RubyGems 1.2.0 r1824. Incorporates [ruby-core:17353].drbrain2008-06-2613-124/+320
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_exec_wordsplit): on win32, exec'ed process ↵usa2008-06-241-2/+13
| | | | | | is not child but grandchild. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_process.rb (test_popen_fork): skip test if fork is not implemented.usa2008-06-241-5/+7
| | | | | | | | | | | * test_process.rb (test_getpriority): skip test if Process::PRIO_USER is not defined. * test_process.rb (test_setpriority): cannot rescue exceptions which raise in assert_nothing_raised. check Process:PRIO_USER before test to skip instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_memhash): randomize hash to avoid algorithmicakr2008-06-201-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | complexity attacks. (rb_str_hash): use rb_memhash. * include/ruby/intern.h (rb_reset_random_seed): declared. * thread.c (rb_thread_atfork): call rb_reset_random_seed. * inits.c (rb_call_inits): call Init_RandomSeed at first. * random.c (seed_initialized): defined. (fill_random_seed): extracted from random_seed. (make_seed_value): extracted from random_seed. (rb_f_rand): initialize random seed at first. (initial_seed): defined. (Init_RandomSeed): defined. (Init_RandomSeed2): defined. (rb_reset_random_seed): defined. (Init_Random): call Init_RandomSeed2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to changemame2008-06-192-9/+9
| | | | | | | | | String to Symbol. * test/testunit/collector/test_objectspace.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.1.1 r1784 (pre 1.2)drbrain2008-06-197-7/+67
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_http.rb: compare encodings of two strings beforemame2008-06-191-0/+1
| | | | | | | comparing themself, which suppress too big error output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.ko12008-06-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]mame2008-06-181-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rubyoptions.rb: use character class instead of alternationkazu2008-06-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e