aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove warning in injected code related to comparison between signed and ↵Hugo Lima2010-02-221-1/+1
| | | | | | unsigned integer expressions. Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Adds test for C++ 'const char*' argument receiving a Python None as a null ↵Marcelo Lira2010-02-202-0/+52
| | | | | | | pointer. The test function 'countCharacters(const char*)' now returns -1 when receiving a null pointer.
* All enums are now extensible to match the C++ casting behaviour.Marcelo Lira2010-02-201-4/+11
| | | | | | | | | | | | | | | Now the user can build new values of a particular enum type passing an integer to its constructor. Thus, the following C++ code: MyEnum val = (MyEnum) 1; is the equivalent of this Python code: val = MyEnum(1) The enum unit tests were also updated. Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Added more tests for bugs found in overload resolution.Hugo Lima2010-02-193-1/+23
|
* Fixing array deallocation in exampleLauro Neto2010-02-191-1/+1
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adding test for sequenceToIntArrayLauro Neto2010-02-194-0/+65
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* other binding does not link against sample binding.Hugo Lima2010-02-182-3/+2
|
* User definied converters are written outside Shiboken namespace.Hugo Lima2010-02-185-1/+10
|
* Adds test for cast operator for a class in a different module.Marcelo Lira2010-02-188-1/+159
| | | | | | | | The new test adds a Number class to test library libother which defines an cast operator to Str, from libsample. The unit test tries to build an Str object passing an Number parameter. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* libother now uses its own library export macros instead of libsample ones.Marcelo Lira2010-02-182-2/+54
|
* Removed tests related to reference keeping from black list.Marcelo Lira2010-02-121-1/+1
|
* The tests for C++ class' fields and reference count will fail.Marcelo Lira2010-02-101-1/+1
| | | | | | | | Tests that check if a referred object reference count was decreased after its keeper object death. Since support for post-mortem reference cleaning wasn't implemented yet the tests are marked as a known fail. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Adds 'reference-count' tag to ObjectView::setModel from test bindings.Marcelo Lira2010-02-101-1/+7
|
* Adds tests for reference counting in model/view style relationships.Marcelo Lira2010-02-107-0/+196
|
* Adds tests for classes with public member variables.Marcelo Lira2010-02-103-4/+133
| | | | | Three kinds of types are represented: primitive, value and object types. The unit tests also check for correct reference counting.
* Implement support to conversion rule.Renato Filho2010-02-094-17/+26
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Adds tests for argument removal and type modification for virtual methods.Marcelo Lira2010-02-093-1/+41
| | | | Reviewed by Lauro Moura <lauro.neto@openbossa.org>
* Fixes generation of binding reimplementation of modified virtual methods.Marcelo Lira2010-02-092-1/+4
| | | | | Argument removal and type modification no longer affects the generation of virtual method signatures in the binding code.
* Adds test for argument removal plus argument type modification.Marcelo Lira2010-02-084-0/+33
|
* Fixing sort overloadLauro Neto2010-02-083-0/+25
| | | | | | Now sorting OverloadData recursively Reviewer: Renato Filho <renato.filho@openbossa.org>
* Shiboken::setParent also accepts list of children.Renato Filho2010-02-051-6/+3
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Fix Weakreference supportLauro Neto2010-02-041-2/+14
| | | | | | | - Flag for types with private destructor - Cleaning weakrefs in normal destructor Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Adding support for weakreferenceLauro Neto2010-02-031-0/+49
| | | | Reviewer: Renato Filho <renato.filho@openbossa.org>
* Add workaround for hardware bug that causes failures on two "size" tests.Anderson Lizardo2010-02-031-2/+12
| | | | Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Add missing PythonInterp checkAnderson Lizardo2010-02-031-0/+2
| | | | | | tests/CMakeLists.txt uses PYTHON_EXECUTABLE without calling find_package(PythonInterp), making this variable empty and thus not calling the correct interpreter (especially inside Scratchbox).
* Fix issue triggerd when an code injection on constructor tries to useHugo Lima2010-02-032-1/+50
| | | | | | the object being constructed before it was fully constructed. For this use case, use inject-code with position=end.
* Fix crash when a virtual function with enum in they arguments is called from ↵Hugo Lima2010-02-013-0/+20
| | | | | | C++ and have an implementation in Python.
* Create test for constructors with implicitly conversion and default args.Renato Filho2010-01-292-4/+10
| | | | Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* Add check of conversions errors on constructors.Hugo Lima2010-01-291-1/+5
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Add test for an impossible type discovery when the type has virtual functions.Hugo Lima2010-01-283-0/+52
|
* Adds support for void pointer conversions.Marcelo Lira2010-01-285-0/+110
| | | | | | | | | A new converter specialization was added to deal with 'void*' conversions. In the case of C++ generating a unknown void pointer a BaseWrapper is used to hold the said pointer. There is a new test for this situation. Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Changed API for PySequence_to_argc_argv.Hugo Lima2010-01-281-2/+2
| | | | | | | | | | It was renamed to PySequenceToArgcArgv and a new argument was added, besides some documentation. If the sequence is empty and defaultAppName (the new argument) was provided, argc will be 1 and argv will have a copy of defaultAppName because some libraries, like Qt, need at least one element in argv (the application name), otherwise it'll crash somewhere inside Qt. Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Export converters when needed.Hugo Lima2010-01-261-2/+4
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Use qualified C++ names on variables inside richComparison functions.Hugo Lima2010-01-261-0/+1
|
* Do not use C++ qualified name to generate the number protocol struct.Hugo Lima2010-01-261-0/+1
|
* Write cptr macro for inner classes.Hugo Lima2010-01-263-0/+9
|
* writeMinimalConstructorCallArguments knowns about enums.Hugo Lima2010-01-263-0/+5
|
* Write the enum name based on enum module, not the current module being ↵Hugo Lima2010-01-261-2/+10
| | | | generated.
* Fix implicitconv_numerical testsHugo Lima2010-01-221-3/+3
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug on overflow check routines under 32 bits platforms.Hugo Lima2010-01-224-1/+16
|
* Adds support for Duck Punching (aka Monkey Patching).Marcelo Lira2010-01-211-0/+139
| | | | | | | | | | | | | | | | The simplest definition of duck punching for our purposes is the ability to change the definition of a method in an instance of a class. To allow this behaviour the SbkBaseWrapper structure had to be extended with a 'ob_dict' which is a PyObject pointer to the instance dictionary. It is originally set to NULL until the user tries to access it. This dictionary could be accessed through the '__dict__' instance property. For now it is read-only. The generator was updated to handle the instance dictionary, and an extensive duck punching test was also added. Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
* Added another constructor to Str class, just to test the new char behaviour.Hugo Lima2010-01-202-0/+7
| | | | | The new behaviour consists in accepting numbers or 1-sized strings when a char is expected.
* Adds test case for overload with static and a non-static versions of a method.Hugo Lima2010-01-194-1/+98
| | | | Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Bucket::m_locked is accessed by multiple threads and must be volatile,Hugo Lima2010-01-181-1/+1
| | | | | | otherwise the code won't work with some compiler optimizations turned on. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Expanded thread locking tests with two more cases.Marcelo Lira2010-01-184-2/+42
| | | | | Added a virtual method marked to allow threads and tests for C++ calling it and also a Python reimplemented version.
* Adds CppGenerator::writeCppSelfDefinition method.Marcelo Lira2010-01-151-1/+1
| | | | | | | | | | The code to write the definition of cppSelf was in two places and contained an #ifdef clause, now it is a writer method. Also added the ShibokenGenerator::cppSelfVariableName() method to be used instead of directly writing the "cppSelf" string. Updated custom code on test binding to remove warning. Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
* Adding new tests related to threads/GIL lockingLauro Neto2010-01-1512-0/+393
| | | | | | | | | | | | | | | - Event loop - calling virtual methods from C++ - Event loop with thread - calling virtuals from C++ along with accessing the binding from another python thread - Thread locking - blocker C++ method that is unlocked from another python thread For these tests, a new ObjectType subclass was added, Bucket, which is just a container for the producer/consumer tests and has the lock/unlock method. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
* Fixing shebang on runtest.shLauro Neto2010-01-151-1/+1
|
* Wrapped virtual methods now locking the GIL in the right places.Marcelo Lira2010-01-151-2/+0
| | | | | | A code injection on the tests was updated. Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
* ProtectedVirtualDestructor must be object-type instead of value-type, ↵Hugo Lima2010-01-151-2/+2
| | | | | | because we can't pass a object with nonpublic destructor by value.