summaryrefslogtreecommitdiffstats
path: root/src/test/test-nscd-flush.c
blob: 1a5a8082f3ca88b27a554f8a72df2f4775745343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: LGPL-2.1-or-later */

#include "main-func.h"
#include "nscd-flush.h"
#include "strv.h"
#include "tests.h"

static int run(int argc, char *argv[]) {
        int r;

        test_setup_logging(LOG_DEBUG);

        r = nscd_flush_cache(STRV_MAKE("group", "passwd", "hosts"));
        if (r < 0)
                return log_error_errno(r, "Failed to flush NSCD cache");

        return 0;
}

DEFINE_MAIN_FUNCTION(run);