Lior Goldberg
c363a93d69
Added support for type alias
2016-06-22 23:13:28 +03:00
William S Fulton
86fd5c9858
Fix autodoc testcase for python -fastproxy
...
Also fixes -O.
This is a minimal change avoiding the differences in the function names
when -fastproxy is used until autodoc code is improved with doxygen
changes.
Closes #721 .
2016-06-22 00:15:05 +01:00
William S Fulton
3459099fb8
%shared_ptr and %template testcase modified to work for python -O
...
Testcase has now been modified to mask the problem by providing the default parameter 'int' in:
%shared_ptr(Space::BaseDefault<short, int>)
If this is not done then d fails to convert to BaseDefault<short>&
This needs fixing in SWIG, but the problem is masked for now, so that the python
testcase works when run with the -O option.
2016-06-21 19:49:27 +01:00
William S Fulton
38cda92938
smartptr inheritance fix when using templates and typedefs
...
Fixes SF bug 3333549 - %shared_ptr fixes when the type is a template using
template parameters that are typedef'd to another type.
Also fixes python -O optimization where the smart pointer conversion to the
base class needs to work because of the virtual methods that have been
optimized away.
2016-06-21 07:00:56 +01:00
William S Fulton
cc7319f52f
Replace assert from Python testcases with code that always runs.
...
assert code is sometimes not executed, eg when running python -O.
2016-06-19 20:11:51 +01:00
William S Fulton
2d5c32048c
Only test python:abc feature when passing -py3 to swig
2016-06-06 19:10:25 +01:00
William S Fulton
260501c45f
Add comment about cpp_template_repeat testcase
2016-06-01 21:25:25 +01:00
William S Fulton
fa60e9c7b0
Removing empty errors tests - template typename missing
...
The missing typename was not warning, but this is too
hard to provide error/warning messages given SWIG supports missing type
information.
2016-06-01 21:25:25 +01:00
William S Fulton
0f0bb3015a
Removing empty error tests - this one seems to be valid C preprocessor code
2016-06-01 21:25:25 +01:00
William S Fulton
e64998d55c
Removing empty errors tests - tests that are valid C/C++ code
2016-06-01 21:25:25 +01:00
William S Fulton
ddd1b38fa2
Removing empty error tests - c_default_error
...
C default arguments are allowed, so migrated the error test to a proper test,
as no error or warning is expected.
2016-06-01 21:25:25 +01:00
William S Fulton
b9ca9f5efc
Smart pointer to %ignored class doesn't expose inherited methods fix.
...
Regression introduced in swig-3.0.9 by 3efdbc8
Closes #690
2016-05-31 22:10:37 +01:00
William S Fulton
550da9f7ef
Testcase warning suppression for vc++
2016-05-28 15:52:44 +01:00
William S Fulton
db54a8d5d1
Fix unused warnings in perl wrappers
2016-05-28 09:59:16 +01:00
William S Fulton
6725b2fdf6
Fix unused variable warnings in test-suite
2016-05-28 00:45:24 +01:00
William S Fulton
43fe8aced6
Testcase workaround for missing boost::array::fill
...
Some older versions of boost don't have this function.
2016-05-26 20:55:28 +01:00
William S Fulton
763827c2e1
Ruby opaque pointer handling regression fix
...
This bug was introduced in swig-3.0.8 in #146252 adding shared_ptr
support. An ObjectPreviouslyDeleted error was incorrectly thrown
when the pointer was used as a parameter after being set to zero
via a call to 'DATA_PTR(self) = 0'.
It isn't clear to me which approach is better in this corner case,
so I've gone for backwards compatibility and restored the old behaviour.
Closes #602
2016-05-24 19:09:17 +01:00
William S Fulton
809d54b13a
php test warning fix
2016-05-14 21:32:24 +01:00
William S Fulton
98a31ff633
Fix directorin SWIGTYPE typemaps to make a copy as these are used for pass by value.
...
Closes #434
2016-05-14 21:32:24 +01:00
William S Fulton
f2d4e2ea0d
Display Rout file when R test case fails
...
To aid debugging
2016-05-08 00:08:10 +01:00
William S Fulton
63e2f636de
Testcase fix for R
...
Workaround bug in R when a method with default arguments end in 'get'
2016-05-07 19:30:13 +01:00
William S Fulton
15ebf3df03
Fix assertion handling defaultargs
...
Occurs when using %extend for a template class and the extended methods
contain default arguments.
Closes #611
2016-05-07 12:33:29 +01:00
William S Fulton
5e6ab1d61d
Merge branch 'ejulien-python_operator_overload_test_suite'
...
* ejulien-python_operator_overload_test_suite:
Add __str__ to operator_overload testcase for python builtin
Python operator_overload runtime testcase cleanup
Work around a limitation of the Python binding generator related to the += family of operators.
Fix Python 3 division member operator when -builtin is not used.
Fix class member division operator.
Remove the PY3BUILTIN switch as its behavior can be achieved with the existing SWIG_FEATURES=-builtin switch.
Implement the operator overload test suite for Python.
Conflicts:
Examples/test-suite/operator_overload.i
2016-05-05 23:01:35 +01:00
William S Fulton
e7f9a3e8f4
Add __str__ to operator_overload testcase for python builtin
...
Just for debugging the testcase with -builtin
2016-05-05 21:10:52 +01:00
William S Fulton
a09ef99606
Python operator_overload runtime testcase cleanup
...
Remove C test code comment ... this code is in operator_overload.i already
2016-05-05 20:28:22 +01:00
Vadim Zeitlin
b97612f1d6
Make check-failing-test make macro more hygienic
...
Minor fix to avoid using the variable defined outside of the macro in its
expansion.
See #665 .
2016-05-03 17:23:25 +02:00
William S Fulton
3efdbc8f2e
Don't issue unnecessary base class ignored message
...
Don't warn about base class being ignored when the derived class is
itself ignored.
Closes #669
2016-05-02 22:50:09 +01:00
William S Fulton
57f1c378b2
Remove JNI checks due to numerous spurious warnings in some versions of jdk-1.8
...
Was happening with openjdk-1.9 on Ubuntu 16.04 Xenial Xerus and also seen in jdk-1.8 on Fedora 23 (jdk-1.8.0_65-b17)
2016-05-01 17:35:55 +01:00
William S Fulton
cc15fcebd0
Fix java testcase for jdk-1.9
...
Package.getName() returns an empty string instead of null in jdk-1.9
exposing bug in use of replaceAll whose 1st arg is a regex expression.
2016-05-01 16:32:15 +01:00
Vadim Zeitlin
9a7114cc38
Add check-failing target to check that failing tests still do fail
...
This is useful to remove the tests which pass after the latest fixes from the
list of the failing tests.
2016-04-20 19:55:29 +02:00
Vadim Zeitlin
3aafd9373f
Merge branch 'allow-failing-tests'
...
Closes #661 .
2016-04-20 01:52:32 +02:00
Vadim Zeitlin
4f222aa78e
Show the number of passed tests in "make check"
...
This is especially useful when some tests are disabled by using
FAILING_XXX_TESTS variables.
2016-04-20 01:52:22 +02:00
Ian Lance Taylor
0f54384ee3
[Go] Fix use of goout typemap when calling base method by
...
forcing the "type" attribute to the value we need.
2016-04-18 15:30:06 -07:00
Vadim Zeitlin
79b665f9ff
Add a possibility to disable failing test cases
...
Allow defining FAILING_{C,CPP,MULTI_CPP}_TESTS variables to exclude some tests
from the unit tests suite. This is useful to disable tests failing for some
language only.
2016-04-18 20:51:30 +02:00
Ian Lance Taylor
223c2a4835
[Go] Fixes for Go 1.6: avoid returning Go pointers from
...
directors that return string values; add a trailing 0 byte
when treating Go string as C char*.
2016-04-17 17:52:09 -07:00
Richard Beare
f7b794a4f3
run test and copying typemaps to std::string
2016-04-05 10:06:42 +10:00
William S Fulton
a97441613e
Merge branch 'ahnolds-py_gettar'
...
* ahnolds-py_gettar:
update changes file for attribute fix
Add python AttributeError test for non-existent attribute
Fixing python attribute lookup
Conflicts:
CHANGES.current
2016-04-02 18:06:03 +01:00
William S Fulton
333a46f07d
Add python AttributeError test for non-existent attribute
2016-04-02 18:03:08 +01:00
William S Fulton
bbd1b8ed05
Add tests for Python -builtin -O and compactdefaultargs and update changes file
2016-04-02 11:29:54 +01:00
William S Fulton
1d62790928
Fix assertion for some languages when wrapping a C++11 enum class that is private in a class.
...
Also don't wrap private enums for a few languages that attempted to do so.
Closes #594 .
2016-03-31 20:27:36 +01:00
William S Fulton
a15bbbaee5
Java - unsigned long long marshalling improvements for negative numbers
...
Affects marshalling of negative numbers from Java to C only.
A cast to signed long long in the C layer will now result in the expected value.
Closes #623 .
2016-03-31 18:56:32 +01:00
William S Fulton
896a0f1f31
Merge branch 'ptomulik-fix/nonclass-constants'
...
* ptomulik-fix/nonclass-constants:
fix handling of function pointers by %constant directive
2016-03-24 19:24:02 +00:00
Paweł Tomulik
174523aa80
fix handling of function pointers by %constant directive
2016-03-24 11:22:51 +01:00
Paweł Tomulik
350d43d988
handle const pointers to functions
2016-03-24 10:59:23 +01:00
William S Fulton
d98f7050a0
Merge branch 'alexwarg-fix-lua-getitem'
...
* alexwarg-fix-lua-getitem:
Add test case for Lua __getitem + inheritance
Fix lua base class methods with __getitem
2016-03-22 20:44:12 +00:00
William S Fulton
7aa5f07dfd
Fix 'make partialcheck-test-suite'
...
Python pep8 should not be run as part of partialcheck
Javascript should also only invoke SWIG during partialcheck
2016-03-18 18:56:55 +00:00
William S Fulton
5cd0678a4c
Scilab test-suite warning suppression
2016-03-17 19:43:12 +00:00
Alexander Warg
be907f96e0
Add test case for Lua __getitem + inheritance
2016-03-17 07:48:01 +01:00
joequant
6212800fe3
Merge pull request #636 from richardbeare/RExtraStdVectorNumericTypes
...
R extra std vector numeric types
2016-03-16 18:55:58 +08:00
Richard Beare
351e21bd4a
Added a run test for vector types. Tests creation of a std::vector
...
from and R vector and transparent conversion of the result.
2016-03-15 12:15:29 +11:00