efl/src/tests
João Paulo Taylor Ienczak Zanette abc308accb eina: Replace remove with rmdir and delete tmpstr
Although the [remove manpage](https://linux.die.net/man/3/remove) states that `remove(...)` deletes
either a file or a directory, this is not true in Windows as it can be seen in
[MSDN docs for
remove](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/remove-wremove?view=vs-2019):

> **(Function description)**
>
> Delete a file.
>
> **Return Value**
>
> Each of these functions returns 0 if the file is successfully deleted.
> Otherwise, **it returns -1 and sets errno either to EACCES to indicate that the
> path** specifies a read-only file, //**specifies a directory**//, or the file
> is open, or to ENOENT to indicate that the filename or path was not found.

This implementation detail caused the Eina test to fail and not removing the
temporary directory.

This patch changes the use of `remove` to the directory-specific `rmdir`, which
is guaranteed to remove the directory. Additionally, it also deletes the
Eina_TmpStr that holds the temporary directory path.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D12115
2020-08-31 11:16:43 +02:00
..
ecore tests: resolve float comparison warnings 2020-05-09 09:25:14 +01:00
ecore_audio_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
ecore_con tests: ecore_con another cert update to extend the time its valid to 100 years 2020-05-11 17:05:44 +02:00
ecore_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
ecore_wl2 efl - build again - test suite break in using undefined ERR macro 2020-06-10 19:30:14 +01:00
ector cmake: remove! 2018-12-20 20:07:26 +01:00
edje tests: edje: check result of evas_engine_info_set() 2020-06-15 15:04:22 +02:00
edje_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eet eet test: use eina_file_mkstemp, fix include for vc++ 2020-08-19 15:59:55 +02:00
eet_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eeze cmake: remove! 2018-12-20 20:07:26 +01:00
efl tests/efl: use alloca for composite model test future to avoid leak 2020-04-15 19:26:39 +02:00
efl_js bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
efl_mono Fix typos 2020-06-25 09:03:05 +02:00
efreet Merge efreet_mime efreet_trash into efreet 2020-05-26 10:15:30 +02:00
eina eina: Replace remove with rmdir and delete tmpstr 2020-08-31 11:16:43 +02:00
eina_cxx bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
eio tests: fix eio tests 2020-07-28 10:05:54 +02:00
eldbus tests/eldbus: add va_end for va_args usage in message test 2019-10-18 13:28:48 -04:00
eldbus_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
elementary tests - efl ui config - use proepr elm enums for elm apis 2020-08-25 13:21:25 +01:00
elementary_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
elput here comes meson 2018-10-02 17:22:50 +02:00
elua bindings: rename luajit -> lua 2020-05-29 17:06:22 +02:00
emile emile_test_base64: Fix memory leak 2019-05-02 13:48:22 +02:00
emotion meson: correctly use the correct dependency 2019-04-05 08:15:39 -04:00
eo eo: set idx on exit to 1 not to 0 2020-08-12 11:18:10 +02:00
eo_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
eolian efl: make all _class_get() functions const 2020-07-20 11:27:53 +02:00
eolian_cxx Use __func__ C99 identifier instead of __FUNCTION__ compiler extension 2020-05-07 09:27:07 -04:00
eolian_js bindings-cxx: fix missing @since tags at stable c#/cpp tests 2020-02-05 17:15:33 +01:00
evas Efl Canvas Text : canvas textblock changed not fired for shadow format (style_apply) 2020-08-18 18:10:04 +09:00
evas_cxx cxx: Add license to CXX bindings. 2019-10-24 10:40:16 -03:00
evil remove last bits of Evil.h in tests and use evil_private.h instead 2019-06-24 09:01:25 -04:00
.gitignore tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00
efl_check.h efl_check.h: Replace stack allocated array by heap allocated 2020-06-23 17:21:22 +02:00
meson.build here comes meson 2018-10-02 17:22:50 +02:00
timeout.c tests: add failsafe timeout for tests running in fork mode 2018-08-16 09:59:58 +02:00