瀏覽代碼

Do not overwrite starpu_perfmodel_display/plot parameters when given

Samuel Thibault 5 年之前
父節點
當前提交
c8e7dab00a
共有 1 個文件被更改,包括 4 次插入2 次删除
  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 */