test-fdset.c revision 0805e9a9c87845be9f801efacc0a358da6991190
/***
This file is part of systemd
Copyright 2014 Ronny Chevalier
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <fcntl.h>
#include <unistd.h>
#include "fdset.h"
#include "util.h"
#include "macro.h"
static void test_fdset_new_fill(void) {
int fd = -1;
char name[] = "/tmp/test-fdset_new_fill.XXXXXX";
}
static void test_fdset_put_dup(void) {
int copyfd = -1;
char name[] = "/tmp/test-fdset_put_dup.XXXXXX";
}
static void test_fdset_cloexec(void) {
int fd = -1;
int flags = -1;
char name[] = "/tmp/test-fdset_cloexec.XXXXXX";
}
static void test_fdset_close_others(void) {
int fd = -1;
int copyfd = -1;
int flags = -1;
char name[] = "/tmp/test-fdset_close_others.XXXXXX";
}
static void test_fdset_remove(void) {
char name[] = "/tmp/test-fdset_remove.XXXXXX";
}
static void test_fdset_iterate(void) {
int fd = -1;
char name[] = "/tmp/test-fdset_iterate.XXXXXX";
Iterator i;
int c = 0;
int a;
FDSET_FOREACH(a, fdset, i) {
c++;
}
assert_se(c == 1);
}
static void test_fdset_isempty(void) {
int fd;
char name[] = "/tmp/test-fdset_isempty.XXXXXX";
}
static void test_fdset_steal_first(void) {
int fd;
char name[] = "/tmp/test-fdset_steal_first.XXXXXX";
}
static void test_fdset_new_array(void) {
}
return 0;
}