Explorar o código

Do not overwrite starpu_perfmodel_display/plot parameters when given

Samuel Thibault %!s(int64=5) %!d(string=hai) anos
pai
achega
c8e7dab00a
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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 */