chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v231.2: Send processes the wakeup signal, even if suspending the system failed.
[elogind.git]
/
src
/
login
/
test-login-shared.c
diff --git
a/src/login/test-login-shared.c
b/src/login/test-login-shared.c
index 2df60292bf2998aa035f7cc923f4b65ab47f4c2c..47d8bf077a6a25bbdd243411bf283083b0f848c8 100644
(file)
--- a/
src/login/test-login-shared.c
+++ b/
src/login/test-login-shared.c
@@
-1,5
+1,3
@@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
/***
This file is part of systemd.
/***
This file is part of systemd.
@@
-19,9
+17,11
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include "login-util.h"
#include "macro.h"
#include "macro.h"
-#include "login-shared.h"
+/// Additional includes needed by elogind
+#include "musl_missing.h"
static void test_session_id_valid(void) {
assert_se(session_id_valid("c1"));
assert_se(session_id_valid("1234"));
static void test_session_id_valid(void) {
assert_se(session_id_valid("c1"));
assert_se(session_id_valid("1234"));
@@
-32,6
+32,10
@@
static void test_session_id_valid(void) {
}
int main(int argc, char* argv[]) {
}
int main(int argc, char* argv[]) {
+ elogind_set_program_name(argv[0]);
+ log_parse_environment();
+ log_open();
+
test_session_id_valid();
return 0;
test_session_id_valid();
return 0;