test-execute.c revision b2c23da8cea1987a1a329f5a964d3299b7ca7890
/***
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 <stdio.h>
#include "unit.h"
#include "manager.h"
#include "util.h"
#include "macro.h"
#include "mkdir.h"
#include "rm-rf.h"
typedef void (*test_function_t)(Manager *m);
assert_se(m);
int r;
usec_t n;
assert_se(r >= 0);
n = now(CLOCK_MONOTONIC);
}
}
}
}
static void test_exec_workingdirectory(Manager *m) {
}
static void test_exec_personality(Manager *m) {
#if defined(__x86_64__)
#endif
}
static void test_exec_ignoresigpipe(Manager *m) {
}
static void test_exec_privatetmp(Manager *m) {
}
static void test_exec_privatedevices(Manager *m) {
}
static void test_exec_systemcallfilter(Manager *m) {
#ifdef HAVE_SECCOMP
#endif
}
static void test_exec_systemcallerrornumber(Manager *m) {
#ifdef HAVE_SECCOMP
#endif
}
static void test_exec_user(Manager *m) {
}
static void test_exec_group(Manager *m) {
}
static void test_exec_environment(Manager *m) {
}
static void test_exec_umask(Manager *m) {
}
test_function_t tests[] = {
NULL,
};
int r;
log_open();
/* It is needed otherwise cgroup creation fails */
if (getuid() != 0) {
printf("Skipping test: not root\n");
return EXIT_TEST_SKIP;
}
r = manager_new(MANAGER_USER, true, &m);
return EXIT_TEST_SKIP;
}
assert_se(r >= 0);
(*test)(m);
manager_free(m);
return 0;
}