Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the is_not_found field is defined for WIN32 only
[simgrid.git] / tools / tesh2 / src / fstream.c
index 2bbaa6e..313717f 100644 (file)
@@ -327,10 +327,18 @@ fstream_parse(fstream_t fstream, xbt_os_mutex_t mutex)
                                unit->is_running_suite = 0;\r
                        }\r
                                \r
-                       if(context->command_line && !context->is_not_found)\r
+                       if(context->command_line)\r
                        {\r
+                               #ifdef WIN32\r
+                               if(!context->is_not_found)\r
+                               {\r
+                               #endif\r
                                if(fstream_launch_command(fstream, context, mutex) < 0)\r
                                                break;\r
+\r
+                               #ifdef WIN32\r
+                               }\r
+                               #endif\r
                        }\r
                \r
                        continue;\r
@@ -374,10 +382,19 @@ fstream_parse(fstream_t fstream, xbt_os_mutex_t mutex)
        }\r
        \r
        /* Check that last command of the file ran well */\r
-       if(context->command_line && !context->is_not_found)\r
+       if(context->command_line)\r
        {\r
+               #ifdef WIN32\r
+               if(!context->is_not_found)\r
+               {\r
+               #endif\r
+\r
                if(fstream_launch_command(fstream, context, mutex) < 0)\r
                        return -1;\r
+\r
+               #ifdef WIN32\r
+               }\r
+               #endif\r
        }\r
        \r
        /* clear buffers */\r