summaryrefslogtreecommitdiffstats
path: root/src/test/test-taint.c
blob: d9aa79dca57c948bdefa027d904e0ee255d42980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: LGPL-2.1-or-later */

#include "taint.h"
#include "tests.h"

TEST(taint_string) {
        _cleanup_free_ char *a = taint_string();
        assert_se(a);
        log_debug("taint string: '%s'", a);

        assert_se(!!strstr(a, "cgroupsv1") == (cg_all_unified() == 0));
}

DEFINE_TEST_MAIN(LOG_DEBUG);