summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-03-06 20:10:15 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-04-14 13:25:22 +0200
commitcf0be339522a5ddf8073c11c6da61784cf038bc4 (patch)
tree378e65de628ac6f4e81fe6add7eefa9d1328f011 /src/tests
parentb9fbeb75e7a4f50f98d979a70a710f9221892483 (diff)
downloadsssd-cf0be339522a5ddf8073c11c6da61784cf038bc4.tar.gz
sssd-cf0be339522a5ddf8073c11c6da61784cf038bc4.tar.xz
sssd-cf0be339522a5ddf8073c11c6da61784cf038bc4.zip
simple_access-tests: Simplify assertion
The second argument of function check_access_list should not be an empty list. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/simple_access-tests.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c
index 5c74eb85f..3e8b310ee 100644
--- a/src/tests/simple_access-tests.c
+++ b/src/tests/simple_access-tests.c
@@ -536,9 +536,7 @@ static void check_access_list(char **list, const char **values)
{
int i;
- if (list == NULL) {
- fail_if(values != NULL, "List is empty, but it shouldn't be");
- }
+ fail_if(values == NULL, "List is empty, but it shouldn't be");
for (i = 0; list[i] != NULL; i++) {
fail_if(values[i] == NULL, "List contains too many entries");