Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/vfs This test does not always fail for LFS, so appl...



details:   https://anonhg.NetBSD.org/src/rev/84b83641d431
branches:  trunk
changeset: 756395:84b83641d431
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Jul 16 10:50:55 2010 +0000

description:
This test does not always fail for LFS, so apply same kludge as
elsewhere while waiting for atf to grow support for these cases.

diffstat:

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

diffs (23 lines):

diff -r d6db1d5b0047 -r 84b83641d431 tests/fs/vfs/t_renamerace.c
--- a/tests/fs/vfs/t_renamerace.c       Fri Jul 16 10:41:12 2010 +0000
+++ b/tests/fs/vfs/t_renamerace.c       Fri Jul 16 10:50:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_renamerace.c,v 1.2 2010/07/14 21:44:40 pooka Exp $   */
+/*     $NetBSD: t_renamerace.c,v 1.3 2010/07/16 10:50:55 pooka Exp $   */
 
 /*
  * Modified for rump and atf from a program supplied
@@ -80,6 +80,13 @@
 
        pthread_join(pt1, NULL);
        pthread_join(pt2, NULL);
+
+       /*
+        * XXX: does not always fail on LFS, especially for unicpu
+        * configurations.  see other ramlings about racy tests.
+        */
+       if (FSTYPE_LFS(tc))
+               abort();
 }
 
 ATF_TC_FSAPPLY(renamerace, "rename(2) race with file unlinked mid-operation");



Home | Main Index | Thread Index | Old Index