Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/rump/kernspace Include some non-critical-but-still-for...



details:   https://anonhg.NetBSD.org/src/rev/3f86983c592e
branches:  trunk
changeset: 446936:3f86983c592e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Dec 25 21:26:31 2018 +0000

description:
Include some non-critical-but-still-for-correctness lines of code
in the cancellation unit test.  (I could have sworn I actually typed
these lines, no really...)

diffstat:

 tests/rump/kernspace/threadpool.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 6fe0d27e84da -r 3f86983c592e tests/rump/kernspace/threadpool.c
--- a/tests/rump/kernspace/threadpool.c Tue Dec 25 16:45:02 2018 +0000
+++ b/tests/rump/kernspace/threadpool.c Tue Dec 25 21:26:31 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: threadpool.c,v 1.1 2018/12/24 21:42:05 thorpej Exp $   */
+/*     $NetBSD: threadpool.c,v 1.2 2018/12/25 21:26:31 thorpej Exp $   */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: threadpool.c,v 1.1 2018/12/24 21:42:05 thorpej Exp $");
+__RCSID("$NetBSD: threadpool.c,v 1.2 2018/12/25 21:26:31 thorpej Exp $");
 #endif /* !lint */
 
 #include <sys/param.h>
@@ -231,4 +231,9 @@
        /* Now wait for the job to finish. */
        threadpool_cancel_job(pool, &data.job);
        KASSERT(data.count == FINAL_COUNT);
+       mutex_exit(&data.mutex);
+
+       fini_test_job_data(&data);
+
+       threadpool_put(pool, PRI_NONE);
 }



Home | Main Index | Thread Index | Old Index