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_many:



details:   https://anonhg.NetBSD.org/src/rev/1ed6172bc5e1
branches:  trunk
changeset: 342628:1ed6172bc5e1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Jan 02 12:11:30 2016 +0000

description:
create_many:
  * add xfails for ext2 and udf
  * don't try to create a subdirectory for sysvbfs

diffstat:

 tests/fs/vfs/t_vnops.c |  21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r df7330f6f5de -r 1ed6172bc5e1 tests/fs/vfs/t_vnops.c
--- a/tests/fs/vfs/t_vnops.c    Sat Jan 02 01:24:44 2016 +0000
+++ b/tests/fs/vfs/t_vnops.c    Sat Jan 02 12:11:30 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_vnops.c,v 1.51 2016/01/01 15:18:39 pooka Exp $       */
+/*     $NetBSD: t_vnops.c,v 1.52 2016/01/02 12:11:30 pooka Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -445,9 +445,11 @@
        int nfiles = 2324; /* #Nancy */
        int i;
 
-       /* fs doesn't support many files */
-       if (FSTYPE_SYSVBFS(tc))
-               nfiles = 5;
+       if (FSTYPE_EXT2FS(tc))
+               atf_tc_expect_fail("PR kern/50607");
+
+       if (FSTYPE_UDF(tc))
+               atf_tc_expect_fail("PR kern/50608");
 
        /* takes forever with many files */
        if (FSTYPE_MSDOS(tc))
@@ -455,9 +457,14 @@
 
        RL(rump_sys_chdir(mp));
 
-       /* msdosfs doesn't like many entries in the root directory */
-       RL(rump_sys_mkdir("subdir", 0777));
-       RL(rump_sys_chdir("subdir"));
+       if (FSTYPE_SYSVBFS(tc)) {
+               /* fs doesn't support many files or subdirectories */
+               nfiles = 5;
+       } else {
+               /* msdosfs doesn't like many entries in the root directory */
+               RL(rump_sys_mkdir("subdir", 0777));
+               RL(rump_sys_chdir("subdir"));
+       }
 
        /* create them */
 #define TESTFN "testfile"



Home | Main Index | Thread Index | Old Index