swig/Examples/test-suite/ruby
William S Fulton 5d529d5a76 Ruby 1.9 fixes.
SF Bug#1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL wrappers that override the default predicate, such as:

  %template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >;

Fixes li_std_functors testcases for Ruby 1.9.

Also rb_respond_to return values have changed subtely in 1.9 and return should be treated as a flag instead of checking for Qtrue, see SF Bug #1159.

Also fix li_std_map, li_std_set silently failing - rb_protect behaviour seems to have changed when an exception is thrown, so code has been changed to use rb_rescue. A call to 'rb_set_errinfo(Qnil)' could have solved this after the rb_protect call, but it is only available in 1.9+ and Ruby API changes are not easily and transparently detectable.
2013-04-05 23:41:59 +01:00
..
abstract_access_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_inherit_ok_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_inherit_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_signature_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_typedef2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_typedef_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
abstract_virtual_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
access_change_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
add_link_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
aggregate_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
anonymous_bitfield_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
apply_signed_char_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
apply_strings_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
argout_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
array_member_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
arrays_global_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
arrays_runme.rb Added new arrays_runme.rb tests 2007-09-04 06:07:33 +00:00
bools_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
cast_operator_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
casts_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
char_constant_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
check_missing_tests.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
class_ignore_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
const_const_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
constover_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
cpp_namespace_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
default_constructor_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_abstract_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_basic_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_constructor_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_default_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_detect_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_exception_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_frob_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_nested_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_protected_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_string_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_unroll_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
director_wombat_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
disown_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
dynamic_cast_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
enum_thorough_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
enums_runme.rb Added new arrays_runme.rb tests 2007-09-04 06:07:33 +00:00
extend_template_ns_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
extend_template_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
friends_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
function_typedef_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
grouping_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
ignore_parameter_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
imports_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
inherit_missing_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
integers_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
li_carrays_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_cstring_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
li_factory_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_math_runme.rb Added new li_math.i test. 2007-09-04 06:36:21 +00:00
li_std_deque_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_std_functors_runme.rb Ruby 1.9 fixes. 2013-04-05 23:41:59 +01:00
li_std_map_runme.rb std::map improvements based on patch from Yuval Baror 2009-05-22 06:10:52 +00:00
li_std_multimap_runme.rb move std::multimap tests from li_std_map.i into new li_std_multimap.i 2009-05-12 17:24:01 +00:00
li_std_pair_lang_object_runme.rb correct module to use 2007-09-04 22:42:07 +00:00
li_std_pair_runme.rb Move ruby specific test into Ruby specific testcase li_std_pair_lang_object.i 2007-09-03 19:45:14 +00:00
li_std_queue_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_std_set_runme.rb Fix incorrect assumptions in Ruby li_std_set test 2013-03-31 00:21:12 +00:00
li_std_speed2_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
li_std_stack_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_std_stream_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
li_std_string_runme.rb variable name changes to remove php keywords 2008-06-24 20:11:46 +00:00
li_std_vector_enum_runme.rb Fix #3475492 - iterating through std::vector wrappers of enumerations. 2012-03-13 07:10:24 +00:00
li_std_vector_runme.rb Fix delete_if (reject!) for the STL container wrappers. 2013-03-29 06:28:15 +00:00
Makefile.in Fixes for out of source builds for Ruby test-suite 2013-04-02 22:21:48 +01:00
member_pointer_runme.rb Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples 2007-08-09 23:47:13 +00:00
minherit_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
namespace_typemap_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
newobject1_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
newobject2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_copy_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_extend_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_extendc_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_simple_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_subtype_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
overload_template_runme.rb Rename max() to maximum() as max() is a built-in function in PHP. 2009-08-14 01:33:23 +00:00
primitive_ref_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
primitive_types_runme.rb [Ruby] Fix to handle FIXNUM values greater than MAXINT passed for a double parameter. 2009-06-26 01:49:33 +00:00
profiletest_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
README The great merge 2002-11-30 22:01:28 +00:00
refcount_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
reference_global_vars_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
rename_scope_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
ruby_keywords_runme.rb modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes. 2008-11-26 21:35:15 +00:00
ruby_li_std_speed_runme.rb SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. 2010-02-27 23:26:02 +00:00
ruby_naming_runme.rb Apply patch 3530444 2012-12-15 16:16:40 +00:00
ruby_track_objects_directors_runme.rb modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes. 2008-11-26 21:35:15 +00:00
ruby_track_objects_runme.rb modify test-suite (barring python atm) to not rely on the -I path to find the input .i file - removes the new warning 125 and sets up the test-suite for testing with ccache. This change required the use of -outcurrentdir and moving the .i files from the language subdirectories to the directory above along with some .i file name changes. 2008-11-26 21:35:15 +00:00
smart_pointer_const_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_multi_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_multi_typedef_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_not_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_overload_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_rename_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_simple_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
smart_pointer_typedef_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
sneaky1_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
static_const_member_2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
std_containers_runme.rb Added new speed test and minor cosmetic fixes to 2007-05-19 09:49:19 +00:00
stl_new_runme.rb Added some more tests for c file wraps. 2007-09-04 06:33:08 +00:00
struct_value_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
swig_assert.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
swig_gc.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_construct_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_extend1_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_extend2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_inherit_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_ns4_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_ns_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_rename_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_tbase_template_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_type_namespace_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_typedef_cplx2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_typedef_cplx3_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_typedef_cplx4_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
template_typedef_cplx_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
throw_exception_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
typedef_inherit_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
typedef_scope_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
typemap_namespace_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
typemap_ns_using_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
typename_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
unions_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
using1_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
using2_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
using_composition_runme.rb Fix using statements for overloaded methods 2007-11-30 22:34:50 +00:00
using_extend_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
using_inherit_runme.rb Fix using statements for overloaded methods 2007-11-30 22:34:50 +00:00
using_private_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
using_protected_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
varargs_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
virtual_derivation_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
virtual_poly_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00
voidtest_runme.rb Removed macro stuff titles of author, copyright, 2007-05-06 18:02:24 +00:00

See ../README for common README file.

Any testcases which have _runme.rb appended after the testcase name will be detected and run.