]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-hostname.c
tests: when running a manager object in a test, migrate to private cgroup subroot...
[thirdparty/systemd.git] / src / test / test-hostname.c
CommitLineData
e5907703
LP
1/***
2 This file is part of systemd.
3
4 Copyright 2010 Lennart Poettering
5
6 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
7 under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
e5907703
LP
9 (at your option) any later version.
10
11 systemd is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 14 Lesser General Public License for more details.
e5907703 15
5430f7f2 16 You should have received a copy of the GNU Lesser General Public License
e5907703
LP
17 along with systemd; If not, see <http://www.gnu.org/licenses/>.
18***/
19
e5907703
LP
20#include "hostname-setup.h"
21#include "util.h"
22
23int main(int argc, char* argv[]) {
24 int r;
25
b0193f1c
LP
26 r = hostname_setup();
27 if (r < 0)
da927ba9 28 log_error_errno(r, "hostname: %m");
e5907703
LP
29
30 return 0;
31}