diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-24 17:07:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-24 19:40:24 +0200 |
commit | a4bc3c1d250a7a751baacbc5a61975aa1dd6d3d5 (patch) | |
tree | cc969122abe741890c7d4050fe963b0203acf501 /src/shared/tests.h | |
parent | 795919efdfab290ab341d8ffe6e82f6c85cb6198 (diff) | |
download | systemd-a4bc3c1d250a7a751baacbc5a61975aa1dd6d3d5.tar.gz |
tests: add helper call have_namespaces() to test whether Linux namespaces are available
A slighly sloppy test call for conditionalizing several tests.
Diffstat (limited to 'src/shared/tests.h')
-rw-r--r-- | src/shared/tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/tests.h b/src/shared/tests.h index 58a3e1c32d..718196f134 100644 --- a/src/shared/tests.h +++ b/src/shared/tests.h @@ -10,3 +10,5 @@ bool slow_tests_enabled(void); void test_setup_logging(int level); int log_tests_skipped(const char *message); int log_tests_skipped_errno(int r, const char *message); + +bool have_namespaces(void); |