Browse Source

tests/core/multithreaded_init: shutdown properly.

Cyril Roelandt 13 years ago
parent
commit
41a36801de
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/core/multithreaded_init.c

+ 6 - 0
tests/core/multithreaded_init.c

@@ -78,5 +78,11 @@ int main(int argc, char **argv)
 		STARPU_ASSERT(ret == 0);
 	}
 
+	for (i = 0; i < NUM_THREADS; i++)
+	{
+		int ret = pthread_join(threads[i], NULL);
+		STARPU_ASSERT(ret == 0);
+	}
+
 	return EXIT_SUCCESS;
 }