Ver código fonte

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

Nathalie Furmento 8 anos atrás
pai
commit
a3ae043424
1 arquivos alterados com 1 adições e 0 exclusões
  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);