From 27762ebaebfa8b7bc44b30fac206de15fc157041 Mon Sep 17 00:00:00 2001 From: cherierm Date: Thu, 11 Sep 2008 15:12:29 +0000 Subject: [PATCH] the is_not_found field is defined for WIN32 only git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5914 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- tools/tesh2/src/fstream.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/tesh2/src/fstream.c b/tools/tesh2/src/fstream.c index 2bbaa6ea83..313717fd99 100644 --- a/tools/tesh2/src/fstream.c +++ b/tools/tesh2/src/fstream.c @@ -327,10 +327,18 @@ fstream_parse(fstream_t fstream, xbt_os_mutex_t mutex) unit->is_running_suite = 0; } - if(context->command_line && !context->is_not_found) + if(context->command_line) { + #ifdef WIN32 + if(!context->is_not_found) + { + #endif if(fstream_launch_command(fstream, context, mutex) < 0) break; + + #ifdef WIN32 + } + #endif } continue; @@ -374,10 +382,19 @@ fstream_parse(fstream_t fstream, xbt_os_mutex_t mutex) } /* Check that last command of the file ran well */ - if(context->command_line && !context->is_not_found) + if(context->command_line) { + #ifdef WIN32 + if(!context->is_not_found) + { + #endif + if(fstream_launch_command(fstream, context, mutex) < 0) return -1; + + #ifdef WIN32 + } + #endif } /* clear buffers */ -- 2.20.1