test-cgroup-util.c revision 7027ff61a34a12487712b382a061c654acc3a679
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2013 Zbigniew Jędrzejewski-Szmek
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 <assert.h>
#include "util.h"
#include "cgroup-util.h"
}
static void test_path_decode_unit(void) {
}
}
}
static void test_path_get_unit(void) {
}
static void test_path_get_user_unit(void) {
}
static void test_get_paths(void) {
assert_se(cg_get_root_path(&a) >= 0);
log_info("Root = %s", a);
assert_se(cg_get_system_path(&b) >= 0);
log_info("System = %s", b);
assert_se(cg_get_user_path(&c) >= 0);
log_info("User = %s", c);
assert_se(cg_get_machine_path(&d) >= 0);
log_info("Machine = %s", d);
}
int main(void) {
return 0;
}