diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-18 16:04:50 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:40:03 -0400 |
commit | 76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8 (patch) | |
tree | 7668b5cf97f2d326445e7e52d2fb8c31e668151b /src | |
parent | b8e70735b8aaabb3de2a063daa60cfadf185b269 (diff) | |
download | sssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.tar.gz sssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.tar.xz sssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.zip |
TESTS: Print messages when LDAP options do not match
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/common.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/common.c b/src/tests/common.c index 3e4753e08..65e695581 100644 --- a/src/tests/common.c +++ b/src/tests/common.c @@ -59,7 +59,11 @@ compare_dp_options(struct dp_option *map1, size_t size1, if (map2[i].opt_name == NULL) return ERANGE; /* Ensure that the option names are the same */ - if(strcmp(map1[i].opt_name, map2[i].opt_name) != 0) return EINVAL; + if(strcmp(map1[i].opt_name, map2[i].opt_name) != 0) { + fprintf(stderr, "Expected [%s], got [%s]\n", + map1[i].opt_name, map2[i].opt_name); + return EINVAL; + } } /* Leftover options in map2 */ @@ -85,7 +89,11 @@ compare_sdap_attr_maps(struct sdap_attr_map *map1, size_t size1, if (map2[i].opt_name == NULL) return ERANGE; /* Ensure that the option names are the same */ - if(strcmp(map1[i].opt_name, map2[i].opt_name) != 0) return EINVAL; + if(strcmp(map1[i].opt_name, map2[i].opt_name) != 0) { + fprintf(stderr, "Expected [%s], got [%s]\n", + map1[i].opt_name, map2[i].opt_name); + return EINVAL; + } } /* Leftover options in map2 */ |