Lines Matching refs:state
30 UnitFileState state = 0; in main() local
43 assert_se((r < 0 && p->state == UNIT_FILE_BAD) || in main()
44 (p->state == s)); in main()
48 unit_file_state_to_string(p->state)); in main()
66 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
68 assert_se(state == UNIT_FILE_ENABLED); in main()
80 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
82 assert_se(state == UNIT_FILE_DISABLED); in main()
97 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
99 assert_se(state == UNIT_FILE_MASKED); in main()
114 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
116 assert_se(state == UNIT_FILE_DISABLED); in main()
128 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
130 assert_se(state == UNIT_FILE_MASKED); in main()
145 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
147 assert_se(state == UNIT_FILE_MASKED); in main()
159 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, files[0], &state); in main()
161 assert_se(state == UNIT_FILE_DISABLED); in main()
173 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
175 assert_se(state == UNIT_FILE_ENABLED); in main()
187 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
200 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
202 assert_se(state == UNIT_FILE_LINKED); in main()
214 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
227 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
229 assert_se(state == UNIT_FILE_LINKED); in main()
241 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
243 assert_se(state == UNIT_FILE_ENABLED); in main()
255 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files2[0]), &state); in main()
267 r = unit_file_get_state(LOOKUP_SCOPE_SYSTEM, NULL, basename(files[0]), &state); in main()
269 assert_se(state == UNIT_FILE_ENABLED); in main()