summaryrefslogtreecommitdiff
path: root/src/tests
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-05-27 15:18:57 +0200
commit4026c1595645df51838fd0a5e61bcba872af3b34 (patch)
treea568f6ae8fdf11108cca0c16255f566033277577 /src/tests
parent2294b9b3f93fbf5fe6d2684ba466da792c42cdd2 (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
Diffstat (limited to 'src/tests')
-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 }