Eina file test: on Windows, open cmd, not a shell
authorVincent Torri <vincent.torri@gmail.com>
Tue, 26 May 2020 21:45:31 +0000 (21:45 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 31 May 2020 21:30:42 +0000 (06:30 +0900)
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D11884

src/tests/eina/eina_test_file.c

index 36817eb..a76d17c 100644 (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);
      }