Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2005 01:05:06 GMT
From:      Wayne Salamon <wsalamon@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 81699 for review
Message-ID:  <200508090105.j79156JU072115@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=81699

Change 81699 by wsalamon@gretsch on 2005/08/09 01:05:05

	Add test cases for nstat(), nlstat(), and nfstat().

Affected files ...

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

Differences ...

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

@@ -81,11 +81,26 @@
 		AUT_PERROR("lstat()");
 	aut_assert(AUE_LSTAT);
 
+	/* Generate a AUE_NSTAT audit record */
+	if ((nstat(tempname, &tstat)) < 0)
+		AUT_PERROR("nstat()");
+	aut_assert(AUE_NSTAT);
+
+	/* Generate a AUE_NLSTAT audit record */
+	if ((nlstat(tempname, &tstat)) < 0)
+		AUT_PERROR("nlstat()");
+	aut_assert(AUE_NLSTAT);
+
 	/* Generate a success AUE_FSTAT record */
 	if ((fstat(temp_fd, &tstat)) < 0)
 		AUT_PERROR("fstat()");
 	aut_assert(AUE_FSTAT);
 
+	/* Generate a success AUE_NFSTAT record */
+	if ((nfstat(temp_fd, &tstat)) < 0)
+		AUT_PERROR("nfstat()");
+	aut_assert(AUE_NFSTAT);
+
 	/* Generate a AUE_PATHCONF audit record */
 	if ((pathconf(tempname, _PC_NAME_MAX)) < 0)
 		AUT_PERROR("pathconf()");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508090105.j79156JU072115>