Parcourir la source

tests/datawizard/gpu_register.c: make sure function returns on error

Nathalie Furmento il y a 8 ans
Parent
commit
a3ae043424
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      tests/datawizard/gpu_register.c

+ 1 - 0
tests/datawizard/gpu_register.c

@@ -154,6 +154,7 @@ test_cuda(void)
 		starpu_free_on_node(starpu_worker_get_memory_node(chosen), (uintptr_t) foo_gpu, size * sizeof(*foo_gpu));
 		free(foo);
 		STARPU_CUDA_REPORT_ERROR(cures);
+		return 1;
 	}
 
 	ret = check_result(foo, size);