Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs"
MFC after: 6 days
This commit is contained in:
parent
4e5f38d634
commit
e8395c4843
@ -6,6 +6,8 @@ ATF_TESTS_SH= mqueue_test
|
||||
|
||||
BINDIR= ${TESTSDIR}
|
||||
|
||||
CFLAGS+= -I${.CURDIR:H:H}
|
||||
|
||||
PROGS+= mqtest1
|
||||
PROGS+= mqtest2
|
||||
PROGS+= mqtest3
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user