Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/nfs * apparently operations can also fail with EIO ...
details: https://anonhg.NetBSD.org/src/rev/a60a27e9d0a4
branches: trunk
changeset: 756786:a60a27e9d0a4
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Aug 01 15:38:27 2010 +0000
description:
* 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
diffstat:
tests/fs/nfs/t_mountd.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 481f82854c68 -r a60a27e9d0a4 tests/fs/nfs/t_mountd.c
--- a/tests/fs/nfs/t_mountd.c Sun Aug 01 14:50:54 2010 +0000
+++ b/tests/fs/nfs/t_mountd.c Sun Aug 01 15:38:27 2010 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index