Explorar o código

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

Nathalie Furmento %!s(int64=8) %!d(string=hai) anos
pai
achega
a3ae043424
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);