Module Name:    src
Committed By:   jmmv
Date:           Sun Mar  2 19:56:48 UTC 2014

Modified Files:
        src/tests/kernel: t_mqueue.c

Log Message:
Remove unnecessary and broken cleanup routine.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/t_mqueue.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/kernel/t_mqueue.c
diff -u src/tests/kernel/t_mqueue.c:1.3 src/tests/kernel/t_mqueue.c:1.4
--- src/tests/kernel/t_mqueue.c:1.3	Tue Nov  6 19:35:38 2012
+++ src/tests/kernel/t_mqueue.c	Sun Mar  2 19:56:48 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_mqueue.c,v 1.3 2012/11/06 19:35:38 pgoyette Exp $ */
+/*	$NetBSD: t_mqueue.c,v 1.4 2014/03/02 19:56:48 jmmv Exp $ */
 
 /*
  * Test for POSIX message queue priority handling.
@@ -16,8 +16,6 @@
 
 #include <mqueue.h>
 
-char *tmpdir;
-
 #define	MQ_PRIO_BASE	24
 
 static void
@@ -98,7 +96,7 @@ receive_msgs(mqd_t mqfd)
 	    "mq_receive 6 prio/data mismatch");
 }
 
-ATF_TC_WITH_CLEANUP(mqueue);
+ATF_TC(mqueue);
 ATF_TC_HEAD(mqueue, tc)
 {
 
@@ -109,6 +107,7 @@ ATF_TC_HEAD(mqueue, tc)
 ATF_TC_BODY(mqueue, tc)
 {
 	int status;
+	char *tmpdir;
 	char template[32];
 	char mq_name[64];
 
@@ -130,16 +129,6 @@ ATF_TC_BODY(mqueue, tc)
 	ATF_REQUIRE_MSG(status == 0, "mq_close failed: %d", errno);
 }
 
-ATF_TC_CLEANUP(mqueue, tc)
-{
-	int status;
-
-	if (tmpdir != NULL) {
-		status = rmdir(tmpdir);
-		ATF_REQUIRE_MSG(status == 0, "rmdir failed: %d", errno);
-	}
-}
-
 ATF_TP_ADD_TCS(tp)
 {
 	ATF_TP_ADD_TC(tp, mqueue); 

Reply via email to