aboutsummaryrefslogtreecommitdiffstats
path: root/test/win32ole
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal: false for all filesnaruse2015-12-1619-0/+19
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32ole.c: check argument typenobu2015-12-131-0/+3
| | | | | | | | * ext/win32ole/win32ole.c (ole_vstr2wc): check argument type, vstr must be a String here. reported by Marcin 'Icewall' Noga of Cisco Talos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use rb_check_arity [ci skip]nobu2015-10-251-6/+2
| | | | | | | * ext: use rb_check_arity and rb_error_arity to raise ArgumentError. [Feature #9025] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_win32ole_event.rb: fix typo [ci skip]nobu2015-09-211-2/+2
| | | | | | | * test/win32ole/test_win32ole_event.rb: fix typo. swbemsink_avairable? => swbemsink_available? [Fix GH-1025] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_win32ole_event.rb: skip messagenobu2015-08-301-2/+3
| | | | | | | * test/win32ole/test_win32ole_event.rb (exec_notification_query_async): add skip message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_win32ole_event.rb: skip 80041008nobu2015-08-301-3/+11
| | | | | | | | * test/win32ole/test_win32ole_event.rb (exec_notification_query_async): skip error with OLE error code:80041008, which seems to occur when logging in as a non admistrator user. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_word.rb: use skip method to skip test.suke2015-02-101-10/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_record.rb: remove test using .NETsuke2015-02-071-102/+0
| | | | | | | Framework 3.5 because it is not included in Windows 8/8.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_record.rbsuke2015-02-071-3/+4
| | | | | | | | | (test_ole_instance_variable_get): correct VT_RECORD type and instance variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-12-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: some tests aresuke2014-12-221-52/+72
| | | | | | | | executed on standard Windows OS without ADO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb: test_s_new_exception issuke2014-12-211-6/+30
| | | | | | | | executed on standard Windows OS without ADO. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/win32ole/test_win32ole_variant.rbsuke2014-09-221-4/+17
| | | | | | | | | | (test_conversion_time2date_with_msec): test by using only assert_in_delta to avoid to fail when converting Time object with 999999999 nanoseconds into VT_DATE Variant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/win32ole/win32ole.c (rbtime2vtdate, vtdate2rbtime): fixsuke2014-09-211-3/+3
| | | | | | | | | | | | the bug in conversion of milliseconds. [Bug #10258] test/win32ole/test_win32ole_variant.rb (test_conversion_dbl2date_with_msec, test_conversion_time2date_with_msec): use assert_in_delta instead of assert_equal to treat an acceptable error range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole_variant.c (ole_val2variant_err,suke2014-09-061-0/+28
| | | | | | | | | | | | ole_val2variantdata, Init_win32ole_variant): support VT_ERROR variant with error code. add WIN32OLE_VARIANT::NoParam. * test/win32ole/test_win32ole_variant.rb(test_c_noparam, test_vt_error_noparam): ditto. * ext/win32ole/win32ole.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (rbtime2vtdate): try to convert millisecondsuke2014-09-011-0/+13
| | | | | | | | | | of Time object to millisecond of VT_DATE VARIANT. * test/win32ole/test_win32ole_variant.rb (test_conversion_time2date_with_msec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (vtdate2rbtime): try to convert millisecondsuke2014-08-271-0/+8
| | | | | | | | | | of VT_DATE VARIANT to nsec of Time object. * test/win32ole/test_win32ole_variant.rb (test_conversion_dbl2date_with_msec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(fole_s_connect, fole_initialize): raise asuke2014-08-252-0/+53
| | | | | | | | | | | security error with the tainted string object. * ext/win32ole/win32ole_event.c(ev_advise): ditto. * test/win32ole/test_win32ole.rb(test_s_new_exc_svr_tainted, test_s_new_exc_host_tainted): ditto. * test/win32ole/test_win32ole_event.rb(test_s_new_exc_tainted): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole_typelib.c (foletypelib_version): returnsuke2014-08-071-1/+1
| | | | | | | | | | version string. * test/win32ole/test_win32ole_typelib.rb (test_version): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_record.rb: add for WIN32OLE_RECORDsuke2014-08-041-0/+313
| | | | | | | | test(need .NET Framework 3.5 to run test). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (folevariant_initialize): WIN32OLE_VARIANTsuke2014-07-181-0/+7
| | | | | | | | | | | does not support VT_RECORD. VT_RECORD should be supported in WIN32OLE_RECORD. * test/win32ole/test_win32ole_variant.rb (test_s_new_vt_record_exc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole: get rid of warnings (unused variable).usa2014-03-027-17/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (folevariant_initialize): check type ofsuke2013-09-081-0/+8
| | | | | | | | | | element of array. * test/win32ole/test_win32ole_variant.rb (test_s_new_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32ole.c: check aritynobu2013-04-081-0/+7
| | | | | | | * ext/win32ole/win32ole.c (fole_missing): should check actual argument count before accessing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):usa2013-03-201-2/+3
| | | | | | | | allow using different drive for source and build directories. this may fixes a minor problem of r39834. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): useusa2013-03-201-3/+5
| | | | | | | | | relative path to get rid of "too long commandline" error. * ChangeLog: fixed wrong description. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: revert r39823 (debug code).usa2013-03-201-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb: debug print. I'll remove this later.usa2013-03-191-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rbusa2013-03-181-11/+11
| | | | | | | | (TestErrInCallBack#test_err_in_callback): shouldn't create a file in source directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32ole.rb: use TracePointnobu2013-01-161-6/+19
| | | | | | | | | * ext/win32ole/lib/win32ole.rb: use TracePoint to hook all thread creation not only by Thread.new and to get rid of interference with svar scope. [Bug #7681] [ruby-core:51365] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (ole_set_byref): support VT_UI8|VT_BYREF,suke2013-01-111-18/+6
| | | | | | | | | | | | | | | VT_I8|VT_BYREF in cygwin and mingw. * ext/win32ole/win32ole.c (ole_variant2val): ditto. * test/win32ole/test_win32ole_variant.rb (test_s_new_with_i8_byref): ditto. * test/win32ole/test_win32ole_variant.rb (test_s_new_with_ui8_byref): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types): suke2012-11-201-1/+1
| | | | | | | | | IShellDispatch6 bundled in Windows 8. Thanks to phasis68 (Heesob Park). [ruby-core:49580][Bug #7403] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb: follow other test files.usa2012-11-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, sousa2012-11-061-1/+1
| | | | | | | binary strings in old scripts are dangerous. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.localesuke2012-08-061-11/+15
| | | | | | | | | to pass some assertion. Thanks to Hiroshi Shirosaki. [ruby-core:46873][Bug #6814] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix win32ole test failure under mingw-w64 (x64-mingw32)luislavena2012-07-231-1/+1
| | | | | | | | * test/win32ole/test_win32ole_method.rb (is_ruby64?): Correct platform used to identify mingw-w64 (x64-mingw32). Patch by Hiroshi Shirosaki. [ruby-core:46651][Bug #6782] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_event.rb (TestWIN32OLE_EVENT): useusa2012-07-181-6/+6
| | | | | | | standard skip method to skip tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb (test_s_codepage_changed):suke2012-07-041-2/+3
| | | | | | | | FileSystemObject only supports ANSI or UTF-16LE encoding. Patch by h.shirosaki (Hiroshi Shirosaki) [ruby-trunk - Bug #6650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole.rb (test_s_codepage_changed):luislavena2012-06-281-4/+4
| | | | | | | FileSystemObject only supports ANSI or UTF-16LE encoding. Patch by bosko (Bosko Ivanisevic) [ruby-trunk - Bug #6650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_variant.rb: use skip method to skip the test.suke2011-07-302-15/+9
| | | | | | | * test/win32ole/test_win32ole_variant_outarg.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb (test_err_in_callback): suke2011-07-231-0/+10
| | | | | | | skip test if ADODB.connection is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.nobu2011-05-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_err_in_callback.rb (teardown): remove tmp fileusa2010-11-251-4/+2
| | | | | | | only when it exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/win32ole/test_folderitem2_invokeverb.rb: refactoring.suke2010-10-141-47/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (reg_get_val): expand environment in suke2010-10-141-0/+6
| | | | | | | the pathname. [Bug #3907] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Change creating shortcut verb to 'Link' [Bug #3339]arton2010-10-031-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/win32ole/test_thread.rb: add for win32ole with Thread.suke2010-10-021-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (is_ruby64): checksuke2010-06-291-1/+1
| | | | | | | ruby binary is mswin64 or mingw64. [ruby-dev:41756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): checksuke2010-06-281-19/+3
| | | | | | | | that Ruby is 32bit or 64bit binary in order to get correct offset value. [ruby-dev:41741] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): checksuke2010-06-251-1/+22
| | | | | | | | that OS is Windows 32bit or Windows 64bit in order to get correct offset value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e