diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2020-05-26 21:45:31 +0000 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2020-06-15 15:35:17 +0200 |
commit | 4211bc1f3cb09dadcc0832e2fc021779c4654eb0 (patch) | |
tree | a4cadf0799ba7f2bd3616fbf2b15d9377c601c38 | |
parent | 69dfeb032381201c18657f5a70f9d12c8b57f71b (diff) | |
download | efl-4211bc1f3cb09dadcc0832e2fc021779c4654eb0.tar.gz |
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
-rw-r--r-- | src/tests/eina/eina_test_file.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/eina/eina_test_file.c b/src/tests/eina/eina_test_file.c index 36817eb01f..a76d17c746 100644 --- a/src/tests/eina/eina_test_file.c +++ b/src/tests/eina/eina_test_file.c @@ -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); } |