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:
2ca8dc1
)
tests: make sure tests pass when invoked in "sudo"
author
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Nov 2016 02:30:11 +0000
(20:30 -0600)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 2 Nov 2016 14:55:24 +0000
(08:55 -0600)
This is a follow-up for
6309e51ea32d64524431ee65c49eecd44390da8f
and makes sure
we compare test results with the right user identifier.
src/test/test-unit-file.c
patch
|
blob
|
history
diff --git
a/src/test/test-unit-file.c
b/src/test/test-unit-file.c
index
7ef087a
..
12f48bf
100644
(file)
--- a/
src/test/test-unit-file.c
+++ b/
src/test/test-unit-file.c
@@
-589,7
+589,7
@@
static void test_install_printf(void) {
assert_se(specifier_machine_id('m', NULL, NULL, &mid) >= 0 && mid);
assert_se(specifier_boot_id('b', NULL, NULL, &bid) >= 0 && bid);
assert_se((host = gethostname_malloc()));
- assert_se((user =
getusername_malloc(
)));
+ assert_se((user =
uid_to_name(getuid()
)));
assert_se(asprintf(&uid, UID_FMT, getuid()) >= 0);
#define expect(src, pattern, result) \