Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/vfs Create the process we use later in the test. O...



details:   https://anonhg.NetBSD.org/src/rev/fad0e26675c8
branches:  trunk
changeset: 758309:fad0e26675c8
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 01 14:04:02 2010 +0000

description:
Create the process we use later in the test.  Otherwise cwd doesn't
go right and the test fails because of attempting to create files
in the wrong directory.

diffstat:

 tests/fs/vfs/t_renamerace.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 2078b6d2dacf -r fad0e26675c8 tests/fs/vfs/t_renamerace.c
--- a/tests/fs/vfs/t_renamerace.c       Mon Nov 01 13:55:19 2010 +0000
+++ b/tests/fs/vfs/t_renamerace.c       Mon Nov 01 14:04:02 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_renamerace.c,v 1.12 2010/09/01 19:41:28 pooka Exp $  */
+/*     $NetBSD: t_renamerace.c,v 1.13 2010/11/01 14:04:02 pooka Exp $  */
 
 /*
  * Modified for rump and atf from a program supplied
@@ -87,6 +87,9 @@
        if (FSTYPE_MSDOS(tc))
                atf_tc_skip("test fails in some setups, reason unknown");
 
+       RZ(rump_pub_lwproc_newproc());
+       RL(wrkpid = rump_sys_getpid());
+
        RL(rump_sys_chdir(mp));
        for (i = 0; i < NWRK; i++)
                pthread_create(&pt1[i], NULL, w1, NULL);



Home | Main Index | Thread Index | Old Index