]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-nscd-flush.c
Merge pull request #12756 from cdown/uninit
[thirdparty/systemd.git] / src / test / test-nscd-flush.c
CommitLineData
f079c372
LP
1/* SPDX-License-Identifier: LGPL-2.1+ */
2
3#include "main-func.h"
4#include "nscd-flush.h"
5#include "strv.h"
6#include "tests.h"
7
8static int run(int argc, char *argv[]) {
9 int r;
10
11 test_setup_logging(LOG_DEBUG);
12
13 r = nscd_flush_cache(STRV_MAKE("group", "passwd", "hosts"));
14 if (r < 0)
15 return log_error_errno(r, "Failed to flush NSCD cache");
16
17 return 0;
18}
19
20DEFINE_MAIN_FUNCTION(run);