Eina file test: on Windows, open cmd, not a shell

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D11884
This commit is contained in:
Vincent Torri 2020-05-26 21:45:31 +00:00 committed by Stefan Schmidt
parent 2294b9b3f9
commit 4026c15956
1 changed files with 6 additions and 1 deletions

View File

@ -489,12 +489,17 @@ EFL_END_TEST
static void *
_eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
{
#ifdef _WIN32
const char *filename = "cmd.exe";
#else
const char *filename = "/bin/sh";
#endif
Eina_File *f;
unsigned int i;
for (i = 0; i < 100; ++i)
{
f = eina_file_open("/bin/sh", EINA_FALSE);
f = eina_file_open(filename, EINA_FALSE);
fail_if(!f);
eina_file_close(f);
}