swig/Examples/test-suite/perl5
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vadim Zeitlin cdf1ba9120 Don't accept strings too long to fit in char[N] with trailing NUL.
It was previously possible to assign "hello" to a variable backed by char[5]
storage in C, and the array contained the correct character data but without
the trailing NUL, which was unexpected in C.

This is not allowed any more, only "helo" can fit into a char[5] now and
anything else fails the type check, just as it already happened for the longer
strings before.

Closes #122
2013-12-23 21:13:25 +00:00
..
aggregate_runme.pl
apply_signed_char_runme.pl
apply_strings_runme.pl
array_member_runme.pl
char_binary_runme.pl
char_strings_runme.pl
class_ignore_runme.pl
contract_runme.pl
default_args_runme.pl Fix assorted typos. 2013-01-08 18:47:40 +13:00
default_constructor_runme.pl
director_abstract_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_alternating_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_basic_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_classes_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_classic_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_constructor_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_default_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_detect_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_enum_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_exception_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_extend_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_finalizer_runme.pl prefer polymorphism on existing destructor over custom destructor method 2013-11-14 08:23:46 -08:00
director_frob_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_ignore_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_nested_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_primitives_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_protected_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_string_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_unroll_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
director_wombat_runme.pl steals python directors and adapts to perl5 2013-11-12 12:45:03 -08:00
disown_runme.pl
dynamic_cast_runme.pl
enum_template_runme.pl
enum_thorough_runme.pl
exception_order_runme.pl
global_vars_runme.pl
grouping_runme.pl
ignore_parameter_runme.pl
import_nomodule_runme.pl
imports_runme.pl
inctest_runme.pl
inherit_missing_runme.pl
inherit_runme.pl
li_carrays_runme.pl
li_cdata_carrays_runme.pl
li_reference_runme.pl
li_std_except_runme.pl
li_std_string_runme.pl
li_typemaps_runme.pl fix "long long" tests for perl v5.6 2013-11-14 11:24:24 -08:00
Makefile.in
member_pointer_runme.pl
minherit_runme.pl
multiple_inheritance_runme.pl
naturalvar_runme.pl
operator_overload_break_runme.pl
operator_overload_runme.pl
overload_copy_runme.pl
overload_simple_runme.pl Patch #3260265 fixing overloading of non-primitive types and integers in Perl 5.12 and later 2011-05-19 19:31:39 +00:00
packageoption_runme.pl
preproc_runme.pl
primitive_ref_runme.pl
primitive_types_runme.pl Don't accept strings too long to fit in char[N] with trailing NUL. 2013-12-23 21:13:25 +00:00
profiletest_runme.pl
README
reference_global_vars_runme.pl fix "long long" tests for perl v5.6 2013-11-14 11:24:24 -08:00
rename_scope_runme.pl
ret_by_value_runme.pl
return_const_value_runme.pl
run-perl-test.pl
sizet_runme.pl
sneaky1_runme.pl
template_default_arg_runme.pl
template_ref_type_runme.pl
template_typedef_cplx2_runme.pl
template_typedef_cplx3_runme.pl
template_typedef_cplx_runme.pl
typedef_class_runme.pl
typemap_namespace_runme.pl
typename_runme.pl
unions_runme.pl
using1_runme.pl
using2_runme.pl
varargs_runme.pl
virtual_poly_runme.pl
voidtest_runme.pl
wrapmacro_runme.pl

See ../README for common README file.

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

Test::More Support
==

Test::More and Test::Harness are two of the standard perl test harness
tools. Support has been added for these modules as of 1.3.28. If
adding a new test to this suite, please use Test::More. 

Currently converted test cases include:

* operator_overload
* operator_overload_break
* package
* overload_simple
* apply_strings
* char_strings
* default_args
* enum_thorough
* global_vars
* import_nomodule
* inherit
* li_cdata_carrays
* li_std_string
* member_pointer
* multiple_inheritance
* primitive_ref
* template_default_arg
* unions
* voidtest