chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e68ca
)
test-path: do not skip tests if we are not root
author
Ronny Chevalier
<chevalier.ronny@gmail.com>
Wed, 14 Jan 2015 23:07:15 +0000
(
00:07
+0100)
committer
Ronny Chevalier
<chevalier.ronny@gmail.com>
Wed, 14 Jan 2015 23:57:44 +0000
(
00:57
+0100)
We can properly run the tests without being root
src/test/test-path.c
patch
|
blob
|
history
diff --git
a/src/test/test-path.c
b/src/test/test-path.c
index 2063ed25439545444269cccd3874a56368c5de2d..1512ae2b195aad753a15b3c70b453893efce9fd8 100644
(file)
--- a/
src/test/test-path.c
+++ b/
src/test/test-path.c
@@
-248,10
+248,6
@@
int main(int argc, char *argv[]) {
log_parse_environment();
log_open();
- /* It is needed otherwise cgroup creation fails */
- if (getuid() != 0)
- return EXIT_TEST_SKIP;
-
assert_se(set_unit_path(TEST_DIR ":") >= 0);
for (test = tests; test && *test; test++) {