diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-11-07 10:41:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2025-01-02 16:38:25 +0100 |
commit | c4a02a526d46151905906808aef80e0b53a3853e (patch) | |
tree | 9e8ac9b67eca60d8e6c93665eec2015786d35d95 /src/test | |
parent | ask-password-api: move tty_fd into AskPasswordRequest structure, too (diff) | |
download | systemd-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.c | 3 |
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 { |