stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4026c1595645df51838fd0a5e61bcba872af3b34

commit 4026c1595645df51838fd0a5e61bcba872af3b34
Author: Vincent Torri <[email protected]>
Date:   Tue May 26 21:45:31 2020 +0000

    Eina file test: on Windows, open cmd, not a shell
    
    Reviewed-by: Stefan Schmidt <[email protected]>
    Reviewed-by: Cedric BAIL <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D11884
---
 src/tests/eina/eina_test_file.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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);
      }

-- 


Reply via email to