Searched refs:expected (Results 1 - 7 of 7) sorted by relevance

/systemd/src/test/
H A Dtest-conf-parser.c27 static void test_config_parse_path_one(const char *rvalue, const char *expected) { argument
31 assert_se(streq_ptr(expected, path));
36 static void test_config_parse_log_level_one(const char *rvalue, int expected) { argument
40 assert_se(expected == log_level);
43 static void test_config_parse_log_facility_one(const char *rvalue, int expected) { argument
47 assert_se(expected == log_facility);
50 static void test_config_parse_iec_size_one(const char *rvalue, size_t expected) { argument
54 assert_se(expected == iec_size);
57 static void test_config_parse_si_size_one(const char *rvalue, size_t expected) { argument
61 assert_se(expected
64 test_config_parse_int_one(const char *rvalue, int expected) argument
71 test_config_parse_unsigned_one(const char *rvalue, unsigned expected) argument
78 test_config_parse_strv_one(const char *rvalue, char **expected) argument
87 test_config_parse_mode_one(const char *rvalue, mode_t expected) argument
94 test_config_parse_sec_one(const char *rvalue, usec_t expected) argument
101 test_config_parse_nsec_one(const char *rvalue, nsec_t expected) argument
[all...]
H A Dtest-device-nodes.c39 static bool expect_encoded_as(const char *in, const char *expected) { argument
41 return streq(encoded, expected);
H A Dtest-verbs.c28 #define test_dispatch_one(argv, verbs, expected) \
30 assert_se(dispatch_verb(strv_length(argv), argv, verbs, NULL) == expected);
H A Dtest-unit-name.c68 static void test_unit_name_replace_instance_one(const char *pattern, const char *repl, const char *expected, int ret) { argument
72 assert_se(streq_ptr(t, expected));
87 static void test_unit_name_from_path_one(const char *path, const char *suffix, const char *expected, int ret) { argument
92 assert_se(streq_ptr(t, expected));
114 static void test_unit_name_from_path_instance_one(const char *pattern, const char *path, const char *suffix, const char *expected, int ret) { argument
119 assert_se(streq_ptr(t, expected));
219 #define expect(unit, pattern, expected) \
224 printf("result: %s\nexpect: %s\n", t, expected); \
225 if ((e = endswith(expected, "*"))) \
226 assert_se(strncmp(t, e, e-expected)); \
429 test_u_n_t_one(const char *name, const char *expected, int ret) argument
[all...]
H A Dtest-path-util.c173 #define test_join(root, path, rest, expected) { \
176 assert_se(streq(z, expected)); \
209 #define test(from_dir, to_path, expected) { \
212 assert_se(streq(z, expected)); \
271 static void test_prefix_root_one(const char *r, const char *p, const char *expected) { argument
276 assert_se(streq_ptr(s, expected));
280 assert_se(streq_ptr(t, expected));
H A Dtest-util.c668 const char * const expected[] = { local
679 assert_se(strneq(expected[i++], word, l));
682 static void check(const char *test, char** expected, bool trailing) { argument
692 assert_se(strneq(expected[i++], word, l));
696 assert_se(expected[i] == NULL);
1520 static void test_shell_escape_one(const char *s, const char *bad, const char *expected) { argument
1524 assert_se(streq_ptr(r, expected));
1535 static void test_shell_maybe_quote_one(const char *s, const char *expected) { argument
1539 assert_se(streq(r, expected));
/systemd/test/TEST-04-JOURNAL/
H A Dtest-journal.sh11 >/expected
15 cmp /expected /output
18 >/expected
22 cmp /expected /output
26 printf "Trailing spaces\n">/expected
30 cmp /expected /output
33 printf "Trailing spaces\n">/expected
37 cmp /expected /output
41 printf $' \t Leading spaces\n'>/expected
45 cmp /expected /outpu
[all...]

Completed in 2857 milliseconds