Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/vfs Extend the time to wait for the thread to quit.
details: https://anonhg.NetBSD.org/src/rev/ba03e6453b18
branches: trunk
changeset: 359921:ba03e6453b18
user: ryo <ryo%NetBSD.org@localhost>
date: Mon Jan 31 17:23:37 2022 +0000
description:
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.
diffstat:
tests/fs/vfs/t_renamerace.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r d01a656f5db7 -r ba03e6453b18 tests/fs/vfs/t_renamerace.c
--- a/tests/fs/vfs/t_renamerace.c Mon Jan 31 16:54:28 2022 +0000
+++ b/tests/fs/vfs/t_renamerace.c Mon Jan 31 17:23:37 2022 +0000
@@ -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 @@
sleep(10);
quittingtime = 1;
- alarm(1);
+ alarm(5);
pthread_join(pt_rmdir, NULL);
pthread_join(pt_rename1, NULL);
pthread_join(pt_rename2, NULL);
Home |
Main Index |
Thread Index |
Old Index