summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-03-13 11:51:18 +0100
committerStephen Gallagher <sgallagh@redhat.com>2013-03-13 08:28:06 -0400
commitac821fee0289abce3d3afc2878e06341c33ff6b9 (patch)
tree470b5c3fb16f9b63cc9dd09b33b90504bdfabd82 /src/tests
parentf51639d8e48e353402e5f649f2fac7ff3143dfbd (diff)
downloadsssd-ac821fee0289abce3d3afc2878e06341c33ff6b9.tar.gz
sssd-ac821fee0289abce3d3afc2878e06341c33ff6b9.tar.bz2
sssd-ac821fee0289abce3d3afc2878e06341c33ff6b9.zip
krb5-utils-tests: remove invalid condition
This condition is invalid because different_realm is not set, when EINVAL is returned. It can make the test fail sometimes.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/krb5_utils-tests.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tests/krb5_utils-tests.c b/src/tests/krb5_utils-tests.c
index bc1890f0..aa2f4ed4 100644
--- a/src/tests/krb5_utils-tests.c
+++ b/src/tests/krb5_utils-tests.c
@@ -700,8 +700,6 @@ START_TEST(test_compare_principal_realm)
ret = compare_principal_realm("userABC", "ABC", &different_realm);
fail_unless(ret == EINVAL, "Missing '@' does not cause EINVAL.");
- fail_unless(different_realm == false, "Same realm but " \
- "different_realm is not false.");
ret = compare_principal_realm("user@ABC", "ABC", &different_realm);
fail_unless(ret == EOK, "Failure with same realm");
fail_unless(different_realm == false, "Same realm but " \