npftest: Wait at least one tick in each gc busy wait iteration. Otherwise the busy wait loop runs a little too fast for the gc about half the times I run the test. XXX We should really arrange mstohz to round up!diff -r1.1 -r1.2 src/usr.sbin/npf/npftest/libnpftest/npf_gc_test.c
(riastradh)
--- src/usr.sbin/npf/npftest/libnpftest/npf_gc_test.c 2020/05/30 14:16:57 1.1
+++ src/usr.sbin/npf/npftest/libnpftest/npf_gc_test.c 2020/08/27 18:51:20 1.2
@@ -222,7 +222,7 @@
/* Wait for the task to be done. */
while (!atomic_load_acquire(&task_done) && retry--) {
npf_worker_signal(test_npf);
- kpause("gctest", false, mstohz(1), NULL);
+ kpause("gctest", false, MAX(1, mstohz(1)), NULL);
}
CHECK_TRUE(atomic_load_acquire(&task_done));