浏览代码

tests/errorcheck/invalid_blocking_calls.c: test return value of starpu_task_wait

Nathalie Furmento 12 年之前
父节点
当前提交
2e54931327
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      tests/errorcheck/invalid_blocking_calls.c

+ 3 - 2
tests/errorcheck/invalid_blocking_calls.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2013  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -102,7 +102,8 @@ int main(int argc, char **argv)
 
 	starpu_data_release(handle);
 
-	starpu_task_wait(task);
+	ret = starpu_task_wait(task);
+	STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_wait");
 	starpu_data_unregister(handle);
 	starpu_shutdown();