Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs"

MFC after: 6 days
This commit is contained in:
Enji Cooper 2015-04-28 10:56:59 +00:00
parent 4e5f38d634
commit e8395c4843
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282137
6 changed files with 22 additions and 0 deletions

View file

@ -6,6 +6,8 @@ ATF_TESTS_SH= mqueue_test
BINDIR= ${TESTSDIR}
CFLAGS+= -I${.CURDIR:H:H}
PROGS+= mqtest1
PROGS+= mqtest2
PROGS+= mqtest3

View file

@ -7,6 +7,8 @@
#include <signal.h>
#include <stdio.h>
#include "freebsd_test_suite/macros.h"
#define MQNAME "/mytstqueue1"
int
@ -17,6 +19,8 @@ main(void)
mqd_t mq;
int status;
PLAIN_REQUIRE_KERNEL_MODULE("mqueuefs", 0);
attr.mq_maxmsg = 2;
attr.mq_msgsize = 100;
mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr);

View file

@ -10,6 +10,8 @@
#include <stdlib.h>
#include <unistd.h>
#include "freebsd_test_suite/macros.h"
#define MQNAME "/mytstqueue2"
#define LOOPS 1000
#define PRIO 10
@ -29,6 +31,8 @@ main(void)
int status;
pid_t pid;
PLAIN_REQUIRE_KERNEL_MODULE("mqueuefs", 0);
mq_unlink(MQNAME);
attr.mq_maxmsg = 5;

View file

@ -11,6 +11,8 @@
#include <stdlib.h>
#include <unistd.h>
#include "freebsd_test_suite/macros.h"
#define MQNAME "/mytstqueue3"
#define LOOPS 1000
#define PRIO 10
@ -31,6 +33,8 @@ main(void)
mqd_t mq;
pid_t pid;
PLAIN_REQUIRE_KERNEL_MODULE("mqueuefs", 0);
mq_unlink(MQNAME);
attr.mq_maxmsg = 5;

View file

@ -12,6 +12,8 @@
#include <stdlib.h>
#include <unistd.h>
#include "freebsd_test_suite/macros.h"
#define MQNAME "/mytstqueue4"
#define LOOPS 1000
#define PRIO 10
@ -32,6 +34,8 @@ main(void)
int kq, status;
pid_t pid;
PLAIN_REQUIRE_KERNEL_MODULE("mqueuefs", 0);
mq_unlink(MQNAME);
attr.mq_maxmsg = 5;

View file

@ -12,6 +12,8 @@
#include <stdlib.h>
#include <unistd.h>
#include "freebsd_test_suite/macros.h"
#define MQNAME "/mytstqueue5"
#define LOOPS 1000
#define PRIO 10
@ -34,6 +36,8 @@ main(void)
mqd_t mq;
pid_t pid;
PLAIN_REQUIRE_KERNEL_MODULE("mqueuefs", 0);
mq_unlink(MQNAME);
sigemptyset(&set);