summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-05-18 16:04:50 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:40:03 -0400
commit76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8 (patch)
tree7668b5cf97f2d326445e7e52d2fb8c31e668151b /src/tests
parentb8e70735b8aaabb3de2a063daa60cfadf185b269 (diff)
downloadsssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.tar.gz
sssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.tar.bz2
sssd-76ab5d8de8ad137a2ee076639b6ebeb70b1f70f8.zip
TESTS: Print messages when LDAP options do not match
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/common.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/common.c b/src/tests/common.c
index 3e4753e0..65e69558 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 */