projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f1b34
)
test-process-util: logs something when skipping tests
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 20 Sep 2018 07:09:05 +0000
(16:09 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 20 Sep 2018 15:32:36 +0000
(
00:32
+0900)
src/test/test-process-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-process-util.c
b/src/test/test-process-util.c
index
d396c29
..
3d63493
100644
(file)
--- a/
src/test/test-process-util.c
+++ b/
src/test/test-process-util.c
@@
-181,15
+181,19
@@
static void test_get_process_cmdline_harder(void) {
_cleanup_free_ char *line = NULL;
pid_t pid;
- if (geteuid() != 0)
+ if (geteuid() != 0) {
+ log_info("Skipping %s: not root", __func__);
return;
+ }
#if HAVE_VALGRIND_VALGRIND_H
/* valgrind patches open(/proc//cmdline)
* so, test_get_process_cmdline_harder fails always
* See https://github.com/systemd/systemd/pull/3555#issuecomment-226564908 */
- if (RUNNING_ON_VALGRIND)
+ if (RUNNING_ON_VALGRIND) {
+ log_info("Skipping %s: running on valgrind", __func__);
return;
+ }
#endif
pid = fork();