Skip to content

Commit

Permalink
libkvs/test: Add kvs_lookup coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Aug 29, 2017
1 parent e0f0632 commit 87b5524
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/libkvs/test/kvs_lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ void errors (void)
errno = 0;
ok (flux_kvs_lookupat (NULL, 0, NULL, NULL) == NULL && errno == EINVAL,
"flux_kvs_lookupat fails on bad input");

errno = 0;
ok (flux_kvs_lookup_get (NULL, NULL) < 0 && errno == EINVAL,
"flux_kvs_lookup_get fails on bad input");

errno = 0;
ok (flux_kvs_lookup_get_unpack (NULL, NULL) < 0 && errno == EINVAL,
"flux_kvs_lookup_get_unpack fails on bad input");
}

int main (int argc, char *argv[])
Expand Down

0 comments on commit 87b5524

Please sign in to comment.