PERFORCE change 87671 for review

Wayne Salamon wsalamon at FreeBSD.org
Sat Dec 3 01:06:08 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=87671

Change 87671 by wsalamon at gretsch on 2005/12/03 01:05:13

	Add a test case for fsync(2).

Affected files ...

.. //depot/projects/trustedbsd/audit3/tools/regression/audit/test/file/tfilemodify.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/tools/regression/audit/test/file/tfilemodify.c#4 (text+ko) ====

@@ -145,6 +145,11 @@
 		AUT_PERROR("flock()");
 	aut_assert(AUE_FLOCK);
 	
+	/* Generate a success AUE_FSYNC audit record */
+	if ((fsync(temp_fd)) < 0)
+		AUT_PERROR("fsync()");
+	aut_assert(AUE_FSYNC);
+	
 	/* Generate a failure AUE_FCHFLAGS audit record */
 	fchflags(255, UF_NODUMP);
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list