Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the is_not_found field is defined for WIN32 only
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 11 Sep 2008 15:12:29 +0000 (15:12 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 11 Sep 2008 15:12:29 +0000 (15:12 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5914 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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