summaryrefslogtreecommitdiff
path: root/src/tests (follow)
AgeCommit message (Collapse)Author
2019-05-02ecore_test_ecore_file: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak the store returned from ecore_file_realpath so add a call to free the returned storage when we are done with it Fixes CID1400825 @fix Depends on D8777 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8778
2019-05-02emile_test_base64: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak the storage returned from eina_binbuf_new here, so lets add a call to eina_binbuf_free before we exit Fixes CID1400852 @fix Depends on D8776 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8777
2019-05-02efl_ui_test_widget: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak the storage returned from eina_array_new here, so lets add a call to eina_array_free Fixes CID1400857 @fix Depends on D8775 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8776
2019-05-02emile_test_base64: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak the storage of variable 'decoded' here, so lets add a call to eina_binbuf_free Fixes CID1400868 @fix Depends on D8774 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8775
2019-05-02efl_ui_test_widget: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak the memory from eina_array_new so lets add a call to eina_array_free Fixes CID1400889 @fix Depends on D8773 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8774
2019-05-02eldbus_test_eldbus_message: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak the variable 'msg' going out of scope here, so lets add a call to unref the returned eldbus_message so it gets freed Fixes CID1400921 @fix Depends on D8772 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8773
2019-05-02eina_test_file: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak 'path' here, so free the returned string Fixes CID1400926 @fix Depends on D8771 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8772
2019-05-02evas_test_image: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak variable 'f' going out of scope here, so if we are going to exit the test, lets close the file before we do Fixes CID1400945 @fix Depends on D8770 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8771
2019-05-02efl_ui_test_widget: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak the eina_array 'a' here, so add a call to eina_array_free Fixes CID1400844 @fix Depends on D8766 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8767
2019-05-02efl_ui_test_widget: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak the eina_array 'a' here, so add a call to eina_array_free before we exit Fixes CID1401003 @fix Depends on D8765 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8766
2019-05-02eina_test_binbuf: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak 'test_buf' here so add eina_binbuf_free to plug the leak Fixes CID1401004 @fix Depends on D8764 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8765
2019-05-02evas_test_mesh: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak file_mask variable here (storage returned from strdup), so lets free the variable before we exit the test Fixes CID1401009 @fix Depends on D8763 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8764
2019-05-02emile_test_base64: Fix resource leakChristopher Michael
Summary: Coverity reports that we leak storage of variable 'str' here, so call eina_strbuf_free Fixes CID1401062 @fix Depends on D8762 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8763
2019-05-02elm_test_widget_focus: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak the 'map' hash here, so lets add a call to free the hash Fixes CID1401069 @fix Depends on D8760 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8761
2019-05-02efl_check: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak variable 'n' here (memory returned from strdup) so let's free it Fixes CID1401070 @fix Depends on D8759 Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8760
2019-05-02eina_test_file: Fix memory leakChristopher Michael
Summary: Coverity reports that we leak big_buffer here, so lets free it. Fixes CID1401072 @fix Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8759
2019-04-30efl_ui_spec: we can add efl_ui_pager nowMarcel Hollerbach
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8752
2019-04-30efl_ui: add a internal flag to mark widgets internalMarcel Hollerbach
when a widget is marked internal, widgets can use that to behave in certain ways. Box for example uses this to not alter the widget_parent property anymore. Which is usefull for when boxes are used internally. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8736
2019-04-27eio: do not fail when the future has been cancelled properly.Cedric BAIL
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8691
2019-04-26efl_ui_spec: lets add a READMEMarcel Hollerbach
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8713
2019-04-26efl_ui_suite_spec: add efl_ui_grid to test suiteMarcel Hollerbach
Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8707
2019-04-26efl_ui_spec_suite: support custom widgetsMarcel Hollerbach
sooo, this test suite is testing interfaces. And when a content needs to be passed into the API, a lightweight version of a widget will be passed in. But sometimes implementations *do* requires special classes, they can now be specified with a custom-mapping in json. Reviewed-by: SangHyeon Jade Lee <sh10233.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8701
2019-04-26efl_pack: split algin and padding propertyMarcel Hollerbach
the pack interface is a general interface for how we pack things into a container. the align and padding property has less to nothing to do with this. Hence this commit splits the two properties into theire own interface. fix T7825 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8699
2019-04-24efl_ui_spec_suite: move the information about tests to the test filesMarcel Hollerbach
for now the widgets which are tested are encoded in the test files where the tests are implemented. This is for now done in a simple json format, just for the sake of simplicity. ref T7815 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8685
2019-04-24meson: do not use the variable name env in monoMarcel Hollerbach
env is used for the program env, and should not be used in any other form here. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8690
2019-04-24ui.relative_layout: enhance relation_xxx_set,get apisYeongjong Lee
Summary: I forgot `efl_pack_layout_request` after relation_xxx is changed. Unnecessary register function in `relation_xxx_get` will return unexpected result. if a object is not child of relative_layout, `relation_xxx_get` should return `target = NULL` and `relative = 0.0` with error message. Test Plan: make check Reviewers: Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8627
2019-04-23efl_ui_scroller: fix Efl.Content implementationMarcel Hollerbach
this commit ensures the following: - Delete content when new content is set - Content set input validation - Correct parent setting Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8682
2019-04-23efl_ui_tab_page: implement content_set / unset correctlyMarcel Hollerbach
This patchset ensures that the following features are supported: - content-widget deletion on set content - content-widget validation on set calls - invalid cases return false - event emission Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8681
2019-04-23efl_ui_popup: fix widget_parent inheritanceMarcel Hollerbach
when you inherit from widget_parent, you MUST call the super function. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8680
2019-04-23csharp: Fix test code memory handlingLauro Moura
Summary: It was causing the test to crash when running in debug build. Also some minor fixes cleaning up stuff when exiting. Fixes T7792. Reviewers: segfaultxavi, vitor.sousa Reviewed By: segfaultxavi, vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7792 Differential Revision: https://phab.enlightenment.org/D8679
2019-04-21ui.table: remove leagcy evas_table from Efl.Ui.TableYeongjong Lee
Remove evas_table. This expect to improve performance by removing internal function call related evas_table. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8615
2019-04-21efl_ui_spec: add tests for efl.contentMarcel Hollerbach
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8640
2019-04-18Evil tests: remove tests of functions provided by mingw-w64Vincent Torri
Summary: mingw-w64 developpers already tests basename and dirname Test Plan: compilation Reviewers: zmike, raster Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8649
2019-04-18eolian: remove legacy generation from testsDaniel Kolesa
2019-04-18Windows: remove fnmatch and regex in Evil and use the ones in regex DLL ↵Vincent Torri
installed by ewpi Test Plan: compilation with autotools and meson (at least as far as it can go) Reviewers: zmike, raster Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8646
2019-04-18tests: add api coverage for evas imageMike Blumenkrantz
verify that legacy apis function as expected when using legacy api to load and unload images Reviewed-by: Hermet Park <hermetpark@gmail.com> Differential Revision: https://phab.enlightenment.org/D8619
2019-04-18Revert "tests: add api coverage for evas image"Marcel Hollerbach
This reverts commit cf70826b33a6840f884c090e911f501c758931a7. This test cannot work right now because the fix has not landed.
2019-04-18tests: add api coverage for evas imageMike Blumenkrantz
Summary: verify that legacy apis function as expected when using legacy api to load and unload images Depends on D8618 Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8619
2019-04-17build: use only BUILD_ECORE_IMF_XIM as a defineMike Blumenkrantz
Summary: meson and autotools were a bit out of sync with this, resulting in unexpected behavior Reviewers: billiob Reviewed By: billiob Subscribers: billiob, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8641
2019-04-17eio: remove unecessary printf from tests.Cedric BAIL
Summary: Depends on D8539 Reviewers: zmike, bu5hm4n Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8542
2019-04-17behavior-tests: add Efl.Ui.TableMarcel Hollerbach
there are no tests for Efl.Pack_Table for now, so here comes unification for Efl.Pack tests. Differential Revision: https://phab.enlightenment.org/D8557
2019-04-17efl_ui_table: hardening of pack_at functionMarcel Hollerbach
_pack_at is used to add new subobjects to the table. When a object is already part of this table, then we should not add it again. Additional, when there is already a gi structure, but the parent is something else, then we should NOT just reuse this struct, otherwise we might use a struct reference that we do not own. The struct could be owned by another table widget. The test must be adjusted, before we did not error on adding a widget twice. Now we do (just like in box). Hence we should not do that in test. Reviewed-by: YeongJong Lee <yj34.lee@samsung.com> Differential Revision: https://phab.enlightenment.org/D8554
2019-04-17elm: here comes a new testsuiteMarcel Hollerbach
We have two elementary test suite, what is more obvious than just adding a third one! This testsuite aims for establishing a standard behaviour for the interfaces we have added in efl now. This first part here brings a few testcases for Efl.Pack which are currently only passing for Efl.Ui.Box. More widgets will be added afterwards. The testcases themself are not defined after what worked or did not work, but rather what made sence (in my opinion ^_^). ref T7767 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D8518
2019-04-17ui.box: remove leagcy evas_box from Efl.Ui.BoxYeongjong Lee
Remove legacy stuff from Efl.Ui.Box. This expect to improve performance by removing internal function call related evas_box. Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8417
2019-04-09unit tests: fix warnings when fork() is not available, fix evil's unit tests ↵Vincent Torri
compilation Summary: * some variables were defined, only when fork() was available * since Eina.h is included unconditionally, add Eina path in Makefile_Evil.am Test Plan: compilation Reviewers: zmike, cedric, raster, devilhorns Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl_build Differential Revision: https://phab.enlightenment.org/D8586
2019-04-09eldbus unit test: fix warningsVincent Torri
Summary: include libgen.h so that basename() is declared Test Plan: compilation Reviewers: cedric, raster, zmike, devilhorns Subscribers: #reviewers, #committers Tags: #efl_build Differential Revision: https://phab.enlightenment.org/D8583
2019-04-08tests: add evas render test for callbacksMike Blumenkrantz
Summary: verify that all callbacks can be incrementally added and triggered during a sync render (which is the rendering used in unit testing) Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl_tests Differential Revision: https://phab.enlightenment.org/D8505
2019-04-07tests - remove one of the eina strtod tests as libc is failingCarsten Haitzler (Rasterman)
see the comments above the test explaining why it's removed (libc fails, not eina and having our tests fail because eina is a bit more robust than libc is not a sane thing to have). but here is the comment for git history spelunking: this test isn't viable because libc actually fails the conversion (testing glibc 2.28 on arch linux). either libc doesn't like the space at the start thus doesn't skip it but assumes END of numbver string thus not converting and returning NULL, or it doesn't like InFiNiTyfoo in some way, but either way this test shows eina to be more robust and do some kind of conversion and libc to fail and return NULL from strtod into the string pointer. it also doesnt return an infinite fp thus hitting the default: case and thus failing etc. ... so all in all remove the test as all it does it cause failures and if anything shows libc to be failing more than eina. @fix
2019-04-07tests - fix check header to always include eina due to windowsCarsten Haitzler (Rasterman)
windows means HAVE_FORK is false... thus missing eina.h and now we have macros that use eina calls always... so this fixes nbuild of tests on windows @fix
2019-04-07remove vpath test for user dir the test was broken and fixing is insaneCarsten Haitzler (Rasterman)
so this test fails on windows as getuid isn't there... so this fixes the windows bild: fix T7728 ... but it also would have failed if $HOME didn't match what was in the passwd file, and other fallback cases if they were triggered. but ... to make this test stay it would have to also change the logic - check $HOME env first, then pwent entry, if that fails /tmp/UID and if that fails use /tmp ... the test would effectively be a copy & paste of the vpath code at which point this is really pointless where testing is copying the exact (or almost exat) same code into the test. this is ignoring the #ifdef fun of martching ifdefs that vary on windows. the problem is this kind of api is defined very much by the system it runs on and the environment and situation, so the test has to be as complex. realistically, instead of copying & pasting the code across and now having 2 bits of code to possibly mantain (change the lib src then the test needs changes too as it's a copy & paste), it's just saner not to have a test for this kind of siutation and accept the reality of the situation. @fix