X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d194da3b6dc8eda6e9f27b4816dd9c986ef88c7..056002da59af071ed3911e0d02f2e9f19996251e:/src/xbt/cunit.c diff --git a/src/xbt/cunit.c b/src/xbt/cunit.c index 7d584ebb26..e507d22e57 100644 --- a/src/xbt/cunit.c +++ b/src/xbt/cunit.c @@ -9,7 +9,7 @@ /* This is partially inspirated from the OSSP ts (Test Suite Library) */ -#include "gras_config.h" +#include "portable.h" #include "xbt/sysdep.h" /* vasprintf */ #include "xbt/cunit.h" @@ -435,6 +435,9 @@ static void apply_selection(char *selection) { xbt_test_unit_t unit; int it_unit; + char suitename[512]; + char unitname[512]; + if (!selection || selection[0] == '\0') return; @@ -458,9 +461,11 @@ static void apply_selection(char *selection) { enabling = 0; memmove(dir,dir+1,strlen(dir)); } + if (dir[0] == '+') { + enabling = 1; + memmove(dir,dir+1,strlen(dir)); + } - - char suitename[512],unitname[512]; p =strchr(dir,':'); if (p) { strcpy(unitname,p+1);