summaryrefslogtreecommitdiff
path: root/src/tests/ecore (unfollow)
AgeCommit message (Collapse)Author
2016-06-22ecore: add test for registered provider.Cedric BAIL
2016-06-20Adjust the code according to the eo event stop changes.Tom Hacohen
This was changed in the previous commit.
2016-06-09eina: Remove value type promisesLauro Moura
All values in promises are now considered as by-pointer.
2016-06-06ecore: make sure lifecycle of Efl.Loop.Fd is correct.Cedric BAIL
2016-06-06ecore: add a tests that ensure we do implement lifecycle correctly.Cedric BAIL
2016-06-06eina: Avoid promise early deletion when cancelled.Lauro Moura
Cancelling a promise will fulfill it but won't actually free the memory. This memory is under custody of the owner, who must either call value_set or error_set to finish it.
2016-06-05ecore: Fix ecore thread promisesLauro Moura
Make sure we free the promise memory, set MAGIC numbers and avoid leaking the underlying eina promise
2016-06-03ecore: add a test for detecting the double free problem.Cedric BAIL
2016-06-03ecore: remove Ecore_Animator Eo object.Cedric BAIL
This is only a legacy API.
2016-06-03eina: Remove more Eina_Promise* parameter in promise callbackFelipe Magno de Almeida
Remove not very useful parameter to eina_promise_then callbacks.
2016-06-03eina: Remove Eina_Promise* parameter in promise callbackFelipe Magno de Almeida
Remove not very useful parameter to eina_promise_then callbacks.
2016-06-03eina: Remove unnecessary indirection to promisesFelipe Magno de Almeida
Now when dealing with pointer types, we will not get pointer to pointer semantics in callbacks and eina_promise_owner_value_set for Eina_Promise. It will work as expected: Eina_Promise_Owner* promise = eina_promise_add(); void* p = malloc(sizeof(T)); eina_promise_owner_value_set(promise, p, &free);
2016-06-01Revert "Eo: Remove eo_del() and make eo_unref() the replacement."Tom Hacohen
This reverts commit 546ff7bbba788ec834c5608361c0834853f2d5d7. It seems that eo_del() is useful and removing it was creating bugs. The issue is that the way we defined parents in eo, both the parent and the programmer share a reference to the object. When we eo_unref() that reference as the programmer, eo has no way to know it's this specific reference we are freeing, and not a general one, so in some circumstances, for example: eo_ref(child); eo_unref(child); // trying to delete here eo_unref(container); // container is deleted here eo_unref(child); // child already has 0 refs before this point. We would have an issue with references and objects being freed too soon and in general, issue with the references. Having eo_del() solves that, because this one explicitly unparents if there is a parent, meaning the reference ownership is explicitly taken by the programmer. eo_del() is essentially a convenience function around "check if has parent, and if so unparent, otherwise, unref". Which should be used when you want to delete an object although it has a parent, and is equivalent to eo_unref() when it doesn't have one.
2016-05-31efl test suite - test args event and args valuesCarsten Haitzler (Rasterman)
2016-05-26ecore: eldbus: Fix prototype for promise then_cb new prototypeFelipe Magno de Almeida
Added Eina_Promise parameter and removed indirection for Eina_Error.
2016-05-26eina: Make cancelled promises use EINA_ERROR_PROMISE_CANCELLED error codeFelipe Magno de Almeida
2016-05-25eina: Add promise parameter to then calllbacksFelipe Magno de Almeida
Added promise parameter to then callbacks so callbacks can steal ownership of the value from the promise.
2016-05-20ecore: promise for timeout and job are clearly never optional, so return them.Cedric Bail
2016-05-18eo: for consistency use object like all our API.Cedric Bail
2016-05-18ecore audio test - improve samples for ecore audio testCarsten Haitzler (Rasterman)
2016-05-17Eo: Remove eo_del() and make eo_unref() the replacement.Tom Hacohen
We used to have eo_del() as the mirrored action to eo_add(). No longer, now you just always eo_unref() to delete an object. This change makes it so the reference of the parent is shared with the reference the programmer has. So eo_parent_set(obj, NULL) can free an object, and so does eo_unref() (even if there is a parent). This means Eo no longer complains if you have a parent during deletion.
2016-05-15ecore: make timeout test that the timeout does happen at least after it is ↵Cedric Bail
supposed to. The test had to been relaxed to allow the server to be overloaded !
2016-05-07eina: Fix memory leaks in promiseFelipe Magno de Almeida
2016-05-06ecore: add tests case for Efl.Loop.Fd.Cedric BAIL
2016-05-04ecore: add timeout promise test.Cedric BAIL
2016-05-04ecore: silence warning in job test.Cedric BAIL
2016-05-02ecore: add test case for Efl.Loop.Job.Cedric Bail
2016-05-02ecore: fix promise test wrong use of EINA_UNUSED.Cedric Bail
2016-04-05ecore: add tests for promises with ecore_thread_promise_runFelipe Magno de Almeida
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-03-15Change the EFL according to the renaming of the eo_add() current object.Tom Hacohen
2016-03-11Revert "Automatic migration to the new eo_add syntax."Tom Hacohen
This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
2016-03-09Automatic migration to the new eo_add syntax.Tom Hacohen
2016-03-08Revert "ecore: Create Promises"Tom Hacohen
Reverting this at Felipe's request following my email. There are many things I strongly object to in this commit. I've touched the surface of those on the ML (which doesn't work at the moment), though we need to better discuss it. The gist: 1. dlsym is a really bad hack that is not even needed. 2. I don't see why eo should even be aware of promises. It's not aware of list, hash and etc. 3. The eolian changes were done wrong. This should have been discussed and consulted before done, even if only because of the amount of hacks it includes and the cross-domain (ecore, eo and eolian) nature of it. This reverts commit f9ba80ab33e0b94dad7ec103e6d261a644f7835f.
2016-03-06ecore: Create PromisesFelipe Magno de Almeida
Add a promise object that allows Eolian interface to include promises as a way to have asynchronous value return and composibility. The usage is like this in a .eo file: class Foo { methods { bar { params { promise: Promise<int>; } } } } Which will create the following API interface: void foo_bar(Ecore_Promise** promise); and the equivalent declaration for implementation. However, the API function will instantiate the Promise for the user and the implementer of the class.
2016-03-04tests: disable loading of the scim module as this can causes hangs of the testsStefan Schmidt
With scim installed we can run into hangs of the test suite when the ecore_imf scim module tries to connect to the scim on the system. This has happened again and again on different installations and made the test suite really fragile. We would need to make sure that scim is configured on the host before we could run this test. It might be a candidate for skipped tests where we check if the env has all we need to run the test and if not skip it. We don not have all the needed pieces in place for this so the best we can do to make the test runs less fragile is disabling scim module loading for now.
2016-03-03Automatic migration to Eo4.Tom Hacohen
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
2016-02-29Eo callbacks: Migrate all of the EFL to the new event cb signatures.Tom Hacohen
2016-02-16Test rework #1: EcoreVincent Torri
Factorisation of the infra make uniform all the tests
2016-01-19Ecore: Remove all temporary files after running make checkJean-Philippe Andre
2016-01-14ecore_evas/tests: add tests for Ecore_Evas_CocoaJean Guyomarc'h
2016-01-14ecore_evas/tests: remove trailing whitespacesJean Guyomarc'h
Cosmetic changes only
2015-12-23efl-js: JavaScript Eolian bindingFelipe Magno de Almeida
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files $ configure --with-js=nodejs and compile normally with: $ make $ make install To use, you have to require efl: efl = require('efl') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a efl.node file that can be required in a node.js instance. @feature
2015-12-05efl: add binary mode to open() callsVincent Torri
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05efl: add binary mode to f(re)open() callsVincent Torri
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-31ecore: add test case for idler enterer functionVivek Ellur
Summary: Added test case for ecore_idle_enterer_before_add function Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3253 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-22efl tests - ecore fb - disable as it basically is more pain than gainCarsten Haitzler (Rasterman)
this means make check is more useful to people.
2015-10-15Tests: use eina_environment_tmp_get()Vincent Torri
2015-10-12eina_queue: add test cases in eina thread queue moduleVivek Ellur
Summary: Added test cases for eina_thread_queue_parent_get and eina_thread_queue_fd_get functions Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com> Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3165 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-28Eo base: Remove the free_func parameter from key_data_set.Tom Hacohen
This was not really useful and against the Eolian guidelines. While I promised I won't break things until the 27th, I was ill (still am), so I'm giving myself a 1 day pass. :P
2015-05-20Ecore file test: Fix access to uninitialized memory.Tom Hacohen