summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-11-07 10:41:56 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-02 16:38:25 +0100
commitc4a02a526d46151905906808aef80e0b53a3853e (patch)
tree9e8ac9b67eca60d8e6c93665eec2015786d35d95 /src/test
parentask-password-api: move tty_fd into AskPasswordRequest structure, too (diff)
downloadsystemd-c4a02a526d46151905906808aef80e0b53a3853e.tar.xz
systemd-c4a02a526d46151905906808aef80e0b53a3853e.zip
ask-password-api: move timeout into AskPasswordRequest structure too
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-ask-password-api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-ask-password-api.c b/src/test/test-ask-password-api.c
index ccf3cee9f3..38afe0c6ef 100644
--- a/src/test/test-ask-password-api.c
+++ b/src/test/test-ask-password-api.c
@@ -12,9 +12,10 @@ TEST(ask_password) {
.tty_fd = -EBADF,
.message = "hello?",
.keyring = "da key",
+ .until = USEC_INFINITY,
};
- r = ask_password_tty(&req, /* until= */ 0, /* flags= */ ASK_PASSWORD_CONSOLE_COLOR, &ret);
+ r = ask_password_tty(&req, /* flags= */ ASK_PASSWORD_CONSOLE_COLOR, &ret);
if (r == -ECANCELED)
ASSERT_NULL(ret);
else {