summaryrefslogtreecommitdiff
path: root/tests/kernel
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2013-02-19 00:54:47 +0000
committerpgoyette <pgoyette@NetBSD.org>2013-02-19 00:54:47 +0000
commit2031e709bf82d241dbe0705b94a64e033b0c0fdd (patch)
treed094a0a880530adba4fcc2f2aa128842b51aa1dc /tests/kernel
parentab5277efc868970a9331cf7709c67860891525f6 (diff)
Wait a little bit after fork()ing the lockers to give them a chance to
get started before trying to ptrace(ATTACH). Otherwise, the traced process doesn't seem to resume properly upon ptrace(DETACH) and on the next pass the ptrace(ATTACH) just hangs forever, causing the test to time-out. XXX The failure-to-resume-properly might actually be a kernel bug that we need to follow up on. But for now, let's make the test work as intended.
Diffstat (limited to 'tests/kernel')
-rw-r--r--tests/kernel/t_lockf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kernel/t_lockf.c b/tests/kernel/t_lockf.c
index c6b531fa5f9..256a05ff5b2 100644
--- a/tests/kernel/t_lockf.c
+++ b/tests/kernel/t_lockf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_lockf.c,v 1.2 2013/02/18 20:59:19 pgoyette Exp $ */
+/* $NetBSD: t_lockf.c,v 1.3 2013/02/19 00:54:47 pgoyette Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -148,6 +148,7 @@ ATF_TC_BODY(randlock, tc)
break;
}
}
+ usleep(sleeptime/10);
for (j=0; j<100; j++) {
printf("parent: run %i\n", j+1);
for (i=0; i<nprocs; i++) {