Explorar o código

Fix passing argv[0] to tests

Samuel Thibault %!s(int64=5) %!d(string=hai) anos
pai
achega
c58ac44e57
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/loader.c

+ 1 - 1
tests/loader.c

@@ -306,7 +306,7 @@ int main(int argc, char *argv[])
 
 		setenv("STARPU_LAUNCH", argv[0], 1);
 
-		execvp(test_name, argv+x);
+		execvp(test_name, argv+x-1);
 
 		fprintf(stderr, "[error] '%s' failed to exec. test marked as failed\n", test_name);
 		exit(EXIT_FAILURE);