summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorryo <ryo@NetBSD.org>2022-01-31 17:23:37 +0000
committerryo <ryo@NetBSD.org>2022-01-31 17:23:37 +0000
commit265fbe306e78df50fdeb0b60609c672027e2016b (patch)
treedb92ad8b458a34c349e5db68f8047ee4e7209936
parenta0487e28860b4c1203a76a5417fe7a01b81bf54e (diff)
Extend the time to wait for the thread to quit.
It seems that alarm(1) is not enough time for the thread to actually exit after quittingtime = 1. It randomly failed with "Test program received signal 14" on a slow environment.
-rw-r--r--tests/fs/vfs/t_renamerace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fs/vfs/t_renamerace.c b/tests/fs/vfs/t_renamerace.c
index 3a820761255..874e5757de7 100644
--- a/tests/fs/vfs/t_renamerace.c
+++ b/tests/fs/vfs/t_renamerace.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_renamerace.c,v 1.43 2021/11/27 15:23:33 gson Exp $ */
+/* $NetBSD: t_renamerace.c,v 1.44 2022/01/31 17:23:37 ryo Exp $ */
/*
* Modified for rump and atf from a program supplied
@@ -244,7 +244,7 @@ renamerace_cycle(const atf_tc_t *tc, const char *mp)
sleep(10);
quittingtime = 1;
- alarm(1);
+ alarm(5);
pthread_join(pt_rmdir, NULL);
pthread_join(pt_rename1, NULL);
pthread_join(pt_rename2, NULL);