Module Name:    src
Committed By:   pooka
Date:           Fri Jul 16 10:50:55 UTC 2010

Modified Files:
        src/tests/fs/vfs: t_renamerace.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/fs/vfs/t_renamerace.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/vfs/t_renamerace.c
diff -u src/tests/fs/vfs/t_renamerace.c:1.2 src/tests/fs/vfs/t_renamerace.c:1.3
--- src/tests/fs/vfs/t_renamerace.c:1.2	Wed Jul 14 21:44:40 2010
+++ src/tests/fs/vfs/t_renamerace.c	Fri Jul 16 10:50:55 2010
@@ -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");

Reply via email to