Ver código fonte

Do not overwrite starpu_perfmodel_display/plot parameters when given

Samuel Thibault 5 anos atrás
pai
commit
c8e7dab00a
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      tests/loader.c

+ 4 - 2
tests/loader.c

@@ -319,11 +319,13 @@ int main(int argc, char *argv[])
 	}
 	else if (strstr(test_name, "starpu_perfmodel_display"))
 	{
-		test_args = strdup("-l");
+		if (x >= argc)
+			test_args = strdup("-l");
 	}
 	else if (strstr(test_name, "starpu_perfmodel_plot"))
 	{
-		test_args = strdup("-l");
+		if (x >= argc)
+			test_args = strdup("-l");
 	}
 
 	/* get launcher program */