summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2020-05-26 21:45:31 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-15 15:35:17 +0200
commit4211bc1f3cb09dadcc0832e2fc021779c4654eb0 (patch)
treea4cadf0799ba7f2bd3616fbf2b15d9377c601c38
parent69dfeb032381201c18657f5a70f9d12c8b57f71b (diff)
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.c7
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
489static void * 489static void *
490_eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED) 490_eina_test_file_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
491{ 491{
492#ifdef _WIN32
493 const char *filename = "cmd.exe";
494#else
495 const char *filename = "/bin/sh";
496#endif
492 Eina_File *f; 497 Eina_File *f;
493 unsigned int i; 498 unsigned int i;
494 499
495 for (i = 0; i < 100; ++i) 500 for (i = 0; i < 100; ++i)
496 { 501 {
497 f = eina_file_open("/bin/sh", EINA_FALSE); 502 f = eina_file_open(filename, EINA_FALSE);
498 fail_if(!f); 503 fail_if(!f);
499 eina_file_close(f); 504 eina_file_close(f);
500 } 505 }