src/util/test-apparmor.c
raw| 1 | /* |
| 2 | * Test AppArmor Handling |
| 3 | */ |
| 4 | |
| 5 | #undef NDEBUG |
| 6 | #include <c-stdaux.h> |
| 7 | #include <stdlib.h> |
| 8 | #include "util/apparmor.h" |
| 9 | |
| 10 | static void test_basic(void) { |
| 11 | bool enabled; |
| 12 | int r; |
| 13 | |
| 14 | r = bus_apparmor_is_enabled(&enabled); |
| 15 | c_assert(!r); |
| 16 | } |
| 17 | |
| 18 | int main(int argc, char **argv) { |
| 19 | test_basic(); |
| 20 | return 0; |
| 21 | } |