Debian Codegraph @

src/test/test-taint.c

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #include "clock-util.h"
4 #include "taint.h"
5 #include "tests.h"
6
7 TEST(taint_string) {
8 _cleanup_free_ char *a = taint_string();
9 assert_se(a);
10 log_debug("taint string: '%s'", a);
11
12 assert_se(!!strstr(a, "local-hwclock") == (clock_is_localtime(NULL) > 0));
13 }
14
15 DEFINE_TEST_MAIN(LOG_DEBUG);