Module Name:    src
Committed By:   pooka
Date:           Sun Aug  1 15:38:27 UTC 2010

Modified Files:
        src/tests/fs/nfs: t_mountd.c

Log Message:
* apparently operations can also fail with EIO and EOPNOTSUPP while
  mountd hup is in progress.  strange, since I can't remember seeing
  those a few days ago when i ran this quite a lot.  anyway, don't
  make those errnos fatal failures.
* also in the "apparently" sector, although this test fails 100%
  reliably on my development host, it does not always trigger in the
  anita run.  so apply the current "race condition test" idiom


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/nfs/t_mountd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/fs/nfs/t_mountd.c
diff -u src/tests/fs/nfs/t_mountd.c:1.1 src/tests/fs/nfs/t_mountd.c:1.2
--- src/tests/fs/nfs/t_mountd.c:1.1	Wed Jul 28 15:24:54 2010
+++ src/tests/fs/nfs/t_mountd.c	Sun Aug  1 15:38:27 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_mountd.c,v 1.1 2010/07/28 15:24:54 pooka Exp $	*/
+/*	$NetBSD: t_mountd.c,v 1.2 2010/08/01 15:38:27 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -67,7 +67,6 @@
 				fail++;
 				break;
 			}
-			atf_tc_fail_errno("open file");
 		}
 		rump_sys_close(fd);
 		if (rump_sys_unlink("file") == -1) {
@@ -75,7 +74,6 @@
 				fail++;
 				break;
 			}
-			atf_tc_fail_errno("unlink file");
 		}
 	}
 	rump_sys_chdir("/");
@@ -108,7 +106,8 @@
 	atf_tc_expect_fail("PR kern/5844");
 	if (fail)
 		atf_tc_fail("op failed with EACCES");
-	atf_tc_expect_pass();
+	else
+		atf_tc_fail("race did not trigger this time");
 }
 
 ATF_TP_ADD_TCS(tp)

Reply via email to