Browse Source

Make test unregister data on ENODEV

Samuel Thibault 10 years ago
parent
commit
fffe6ac0f5
1 changed files with 8 additions and 1 deletions
  1. 8 1
      tests/datawizard/data_implicit_deps.c

+ 8 - 1
tests/datawizard/data_implicit_deps.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2013  Université de Bordeaux
+ * Copyright (C) 2010, 2013, 2015  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -199,6 +199,13 @@ int main(int argc, char **argv)
 	return EXIT_SUCCESS;
 
 enodev:
+	starpu_data_unregister(A_handle);
+	starpu_data_unregister(B_handle);
+	starpu_data_unregister(C_handle);
+	starpu_data_unregister(D_handle);
+
+	starpu_data_unregister(var_handle);
+
 	free(A);
 	free(B);
 	free(C);