Lines Matching refs:expected
68 static void test_unit_name_replace_instance_one(const char *pattern, const char *repl, const char *expected, int ret) {
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) {
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) {
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)); \
228 assert_se(streq(t, expected)); \
429 static void test_u_n_t_one(const char *name, const char *expected, int ret) {
433 printf("got: %s, expected: %s\n", strna(f), strna(expected));
434 assert_se(streq_ptr(f, expected));