if (readlink_malloc("/var/run", &var_run) < 0 || !PATH_IN_SET(var_run, "../run", "/run"))
stage[n++] = "var-run-bad";
- if (cg_all_unified() == 0)
- stage[n++] = "cgroupsv1";
-
if (clock_is_localtime(NULL) > 0)
stage[n++] = "local-hwclock";
/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#include "clock-util.h"
#include "taint.h"
#include "tests.h"
assert_se(a);
log_debug("taint string: '%s'", a);
- assert_se(!!strstr(a, "cgroupsv1") == (cg_all_unified() == 0));
+ assert_se(!!strstr(a, "local-hwclock") == (clock_is_localtime(NULL) > 0));
}
DEFINE_TEST_MAIN(LOG_DEBUG);